The UNIX filesystem is laid out as a hierarchical tree structure which is anchored at a special
top-level directory known as the root (designated by a slash '/'). Because of the tree structure, a
directory can have many child directories, but only one parent directory. Fig. 2.1 illustrates this
layout.
To specify a location in the directory hierarchy, we must specify a path through the tree. The path
to a location can be defined by an absolute path from the root /, or as a relative path from the
current working directory. To specify a path, each directory along the route from the source to the
destination must be included in the path, with each directory in the sequence being separated by a
slash. To help with the specification of relative paths, UNIX provides the shorthand . for the
current directory and .. for the parent directory. For example, the absolute path to the directory
play is /home/will/play, while the relative path to this directory from zeb is ../will/play.
...
|