The Difference Between Relative and Absolute Filenames
Specifying the location of a file in a hierarchy to ensure that the filename is unique is known in UNIX parlance as specifying its absolute filename. That is, regardless of where you are within the file system, the absolute filename always specifies a particular file. By contrast, relative filenames are not unique descriptors.
To understand, consider the files shown in Figure 3.3.
Figure 3.3. A simple hierarchy of files.
If you are currently looking at the information in the Indiana directory, Bldgs uniquely describes one file: the Bldgs file in the Indiana directory. That same name, however, ...
Get Sams Teach Yourself UNIX® in 24 Hours Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.