Dave.YNA
April 18th, 2014, 03:19 AM
Hello all,
Just curious if there is an interesting reason why the default paths selected in Ubuntu are selected? My appears as:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
but I have been working on a redhat machine or two at work and noticed it is quite different. It will have directories such as /bin/ and /sbin/ etc..... I assume this is probably because these directories are intented for Root. If that is so, the confusing aspect is that if I run ifconfig which is located in /sbin/ifconfig, the binary is found without specifying the directory. How can that be if it is not in my PATH?
Cheers
Just curious if there is an interesting reason why the default paths selected in Ubuntu are selected? My appears as:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
but I have been working on a redhat machine or two at work and noticed it is quite different. It will have directories such as /bin/ and /sbin/ etc..... I assume this is probably because these directories are intented for Root. If that is so, the confusing aspect is that if I run ifconfig which is located in /sbin/ifconfig, the binary is found without specifying the directory. How can that be if it is not in my PATH?
Cheers