When I try command "ifconfig" on CentOS, it responded "Command not known". I realized that it is not in my profile file.
To check up whether it is in your profile, just type in:
> echo $PATH
you can use /sbin/ifconfig is working or not. To add it to your user profile, you need to add the following to your /etc/profile:
export PATH=$PATH/sbin
Save and quit:
> :wq
and then activate your changes:
> source /etc/profile
Is this permanent? I had to activate this on my machine. Not sure why this wasn't done at the time of installation. Thanks for the info!
ReplyDelete