CentOS /usr/sbin & /sbin

Soldato
Joined
2 May 2004
Posts
19,950
Hi,

Could someone tell me how to register a path in CentOS please.

For example, if I wanted to execute e.g. ifconfig I have to type '/sbin/ifconfig' instead of being able to just type 'ifconfig'.

I think I need /usr/sbin and /sbin registered, not sure if there are any others that should be registered?

Thanks,
Craig.
 
Shell without path? Something's gone wrong. Are you using bash?
Presuming you are regular user put into .profile (as in: $HOME/.profile) :
Code:
export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin
then execute
Code:
. $HOME/.profile
 
Last edited:
I'm just using GNOME terminal at the moment (Cent OS default) and it's been like that since I installed - I noticed it even before I started installing my programs :(

Those commands went through, but it seems they did nothing. I also had to create $HOME/.profile manually - it didn't exist before.

Still not working :(
 
Back
Top Bottom