Linux System Administration
Shells
The Command Path
The most important part of any shell startup file is the command path.
The command path tells the shell which directories to look into when you try to run an application.
The path should cover all the directories that contain the applications of interest to the user.
To see the current path, type echo $PATH
[guest@localhost ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/guest/bin
Suppose I like to run the application
ifconfig
. This is a file in
/sbin
. Here are its permissions.
[guest@localhost ~]$ ls -l /sbin/ifconfig
-rwxr-xr-x 1 root root 56492 Jan 31 05:24 /sbin/ifconfig
Prev
Page 4
Next