Problem: Ipconfig:command not found
[email protected] root]# ipconfig-bash:ipconfig:command not found
Method:1. After installing the CentOS5.5, Ipconfig cannot find the instructions to configure the ipconfig command to an environment variable.
2, the test results echo $PATH, sure enough/sbin this main directory is not the PATH.
[Email protected] network-scripts]# echo $PATH/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/ local/ #无/sbin command Path
3, run with Administrator privileges Vi/etc/profile Add the following statement at the end of the file:
Path= $PATH:/sbin
export path= $PATH:/sbin
use: wq! Save and exit.
[Email protected] boot]# vim/etc/profile .... unset iunset pathmungePATH= $PATH:/sbinexport path= $PATH:/sbin"/etc/profile "60L, 1071C
[Email protected] Boot]#:wq
4, input command: source/etc/profile, let configuration information immediately effective
You can use this command when you re-enter Ifconfig.
Linux-bash:ipconfig:command not found workaround