-->

What are the types of path names that can be used in Unix?

In a file system which contains a hierarchy of directories the user has to specify a path to a file or directory to access it.

For ex.




The above path refers to the file text.notes inside the folder which is inside the lyrics folder. The lyrics folder is contained by the music folder which in turn is contained by the my folder. The root directory is home.
There are two types of paths that can be used in Unix:

- Absolute Path name: This type of file name starts with the "/" symbol i.e. the root.
- Relative Path name: This path name begins from the current working directory where the user is.

For the above stated path the relative directory would be: