Wednesday, October 20, 2010

Command not found (RHEL 5) chkconfig,service,ifconfig

Hi,

I know its very simple issue but important for beginneers ,
Many times some configuration changes in .bash_profile file may lead to these types of errors . .

As all your commands are there in /sbin/ if $PATH variable is not set properly then you may get this error...

Solution :

1) If you are logged in as root
2) cd ~
3) vim .bash_profile
4) export $PATH=/sbin
5) Thats it.! now you specified your system where to check for system commands!

Fireup your fav system command and check the output!

Enjoy!
Have a nice day!

No comments:

Post a Comment