Google News
logo
Unix - Interview Questions
Explain a path in UNIX and different types of pathnames.
A Path is the unique location of a file/directory and a way to access it within the hierarchy of directories. There are basically two types of pathnames that are used in Unix.

Absolute Pathname : The complete path specifying the location of a file/ directory from the very start of the actual file system(root directory).

Ex : /usr/local/Cellar/mysql/bin


Relative Pathname : The path from the current working directory where the user is i.e. the present working directory (pwd).

Ex : If current directory is /usr/local/Cellar the the relative path for bin is ./mysql/bin
Advertisement