ifconfig:Command not found

在RedHat终端,直接敲入ifconfig命令,提示信息是:bash: ifconfig: command not found。

敲入/sbin/ifconfig则可以看到网络配置。类似现象的命令也出现了不少。

解决方法: 

cd ~ 
vi .bash_profile 
PATH=$PATH:$HOME/bin 在这一句后加上 :/sbin (即为:PATH=$PATH:$HOME/bin:sbin)

source .bash_profile 

 

 

 

posted @ 2013-06-14 19:52  孤魂野鬼hg  阅读(69)  评论(0)    收藏  举报