What is an absolute pathname? |
|
If a file is located in the root directory, its absolute pathname
is formed by prefixing a slash character (/) to the name of the file.
For example, a file named klarn in the root directory
can be referred to as "/klarn".
Suppose the root directory contains a subdirectory named bar
which in turn contains a file named baz. You could refer
to this file as "/bar/baz".
To form the absolute pathname of a file f:
For example, pathname /red/joe/recipes/mousaka refers
to a file named mousaka, located in a directory
recipes, which is a subdirectory of directory
joe, which in turn is a subdirectory of directory
red, which is located in the root directory.