[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

關於 Wallace.inMacao

In School, I am a student. (Obviously) In Home, I am a student also. (What..?) In Street, I am still a FUCKING STUDENT. OMG why I must fill in STUDY in my life !? Kick out it and BE MYSELF! OKAY On The Other Way I Am A Chinese Otaku Also..

Posted on 2010 年 06 月 07 日, in Linux, Redhat and tagged , , , , , , , , . Bookmark the permalink. 發表迴響.

發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Follow

Get every new post delivered to your Inbox.

Join 43 other followers