UNIX / Linux: Absolute Pathnames
Q. Can you explain the term absolute pathname under UNIX or Linux oses?
A. An absolute pathname, is the location of a filesystem object relative to the root directory. All absolute pathnames always begin with a slash (/). With Absolute pathname you have access to complete file system objects such as directories and files.
Absolute Pathnames
You can use absolute pathnames to specify full file path such as /etc/passwd. It is believed that UNIX pathname looks and feels like Internet addresses, thus result into compatibility. The absolute pathname of the current directory can be found by using the pwd command:
pwd
Absolute Pathnames Examples
Try following commands:
pwd
ls /etc
ls /usr/share/games
cd /usr/share/games
pwd
cd ~
pwd
cat /etc/passwd
cp /etc/passwd /tmp
cd /tmp
pwd
cat passwd
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Understanding Linux / UNIX Relative Pathname
- Understanding /etc/passwd file format
- How do I find the path to a command file?
- Can I create another root user account in Linux / UNIX?
- Linux / UNIX: Print Current Working Directory with pwd command
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: absolute_pathname, absolute_pathnames, filesystem_object, pwd_command, root_directory, unix_pathname



Recent Comments
Yesterday ~ 7 Comments
Yesterday ~ 33 Comments
Yesterday ~ 2 Comments
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments