March 2002
Beginner
504 pages
10h 47m
English
This section looks at some questions about files and directories. These questions include issues with specific commands and examples that illustrate the use of commands to solve particular problems.
Shell scripts that work with directories often need to determine the absolute pathname of a directory to perform the correct operations on these directories.
You can determine the absolute pathname of a directory by using the cd and pwd commands as follows:
ABSPATH=`(cd dir 2> /dev/null && pwd ;)`
Here dir is the name of a directory. This command changes directories to the specified directory, dir, and then displays the full pathname of the directory using the ...
Read now
Unlock full access