Pro Bash Programming: Scripting the GNU/Linux Shell by Varma Jayant

Pro Bash Programming: Scripting the GNU/Linux Shell by Varma Jayant

Author:Varma, Jayant [Varma, Jayant]
Language: eng
Format: azw3
ISBN: 9781484201220
Publisher: Apress
Published: 2015-06-16T16:00:00+00:00


command, Execute a Command or Display Information About Commands

With -v or -V, display information about a command. Without options, call the command from an external file rather than a function.

pwd, Print the Current Working Directory

pwd prints the absolute pathname of the current directory. With the -P option, it prints the physical location with no symbolic links:

$ ls -ld $HOME/Book ## Directory is a symbolic link

lrwxrwxrwx 1 jayant jayant 10 Apr 25 2015 /home/jayant/Book -> work/Cook

$ cd $HOME/Book

$ pwd ## Include symbolic links

/home/jayant/Book

$ pwd -P ## Print physical location with no links

/home/jayant/work/Book



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.