Linux System Administration
Shells
The Command Path
Notice that I have permission to run this application. In order to run it, I would have to use the full pathname:
[guest@localhost ~]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:BF:50:B3:DA
inet addr:192.168.1.150 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe50:b3da/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40824 errors:0 dropped:0 overruns:0 frame:0
TX packets:31382 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30254304 (28.8 MiB) TX bytes:5336892 (5.0 MiB)
Interrupt:11 Base address:0xe000
If /sbin were in my path, then all I would have to type is the following:
[guest@localhost ~]$ ifconfig
Prev
Page 5
Next