[RedHat] ifconfig:Command not found 解決方法
在使用Redhat的時候,我遇到了一個重大問題:輸入ifconfig查詢網絡位址時出現bash: ifconfig: command not found錯誤。
解決方法
打開終端機,輸入:
cd /home/
gedit .bash_profile
找到這一句:
PATH=$PATH:$HOME/bin
在上句後方輸入
:sbin
即變成:
PATH=$PATH:$HOME/bin:sbin
其實意義等同於在Windows中加入位置到%Path%一樣。
按一下儲存即可。
參考自:http://hi.baidu.com/495269917/blog/item/c356a3bf7010970d19d81fc2.html
Posted on 2010 年 06 月 07 日, in Linux, Redhat and tagged :sbin, bash, command not found, 終端機, gedit, ifconfig, Linux, PATH, Redhat. Bookmark the permalink. 發表迴響.





發表迴響
迴響數(1)