Understand Linux absolute pathname
Understand Linux absolute pathname.
What is Linux absolute pathnames all about? The absolute pathname is where you always specify full path name to execute command or program that start from the system root directory ( / ). To understand Linux absolute pathname, see command example below that use absolute pathname in their example.
Linux pwd command show absolute pathname to user home directory.

[fedora11@fedora11 ~]$ pwd
/home/fedora11 <= show absolute pathname to your home directory
[fedora11@fedora11 ~]$
By specify directory absolute pathname, no matter where you are or which directory you are in on the system, the absolute path would take you straight to directory that you intend to go.

[root@fedora11
~]# cd /etc/sysconfig/
[root@fedora11 sysconfig]#
pwd
/etc/sysconfig
[root@fedora11 sysconfig]#
View contents of passwd file in by specifying the absolute path names to the file.

[root@fedora11
~]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
Execute ls command by specify absolute path to the Linux command.

[root@fedora11 ~]# /bin/ls /
bin etc lost+found opt sbin sys var
boot home media proc selinux tmp
dev lib mnt root srv usr
[root@fedora11 ~]#
Note: Remember that Linux absolute pathname always begin/start from the root directory ( / ).
Keywords: understand linux absolute pathname, linux absolute pathname, linux absolute path, absolute pathname, absolute path
- Add new comment
- 911 reads
- Tell your friends

Recent comments
17 weeks 36 min ago
21 weeks 2 days ago
21 weeks 2 days ago
24 weeks 6 days ago
24 weeks 6 days ago
30 weeks 15 hours ago
30 weeks 19 hours ago
30 weeks 1 day ago