<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/sbin_ifconfig/</link>
<title><![CDATA[bash: ifconfig: command not found 解决方法]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Mon, 27 Dec 2010 06:11:48 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/sbin_ifconfig/</guid> 
<description>
<![CDATA[ 
	<p>今天在VM中重新设置了下网络配置文件，重启网络提示：</p><p>[master@localhost /]# ifconfig <br />提示：&ldquo;bash: ifconfig: command not found&rdquo;</p><p>此为环境变量问题：</p><p>分析问题 <br />1.whereis ifconfig 看一下这个命令在哪个目录下</p><p>2.echo $PATH 看一下该目录是否在路经下,注意lunux下是完全区分大小写的，所以不要忽略这点 <br /><br />3.执行命令，需要指定路径或者把目录加入PATH中</p><p><span style="color: #ff0000"><strong>方法一：使用命令：export PATH=$PATH:/sbin</strong></span></p><p><span style="color: #ff0000"><strong><a target="_blank" href="http://at.liuxinxiu.com/2010/12/image/sbin-ifconfig.gif"><img height="471" width="533" alt="" src="http://at.liuxinxiu.com/2010/12/image/sbin-ifconfig.gif" /></a></strong></span></p><p><span style="color: #ff0000"><strong><p><strong>OK 即可使用：ifconfig&nbsp; 短标签。。。。。</strong></p></strong></span></p><p>方法二：/sbin/ifconfig&nbsp; （输入全路径）</p><p>方法三：修改/etc/profile文件,注释掉if语句即可，如红色所示</p><p># Path manipulation<br /><font color="#ff3300"># if [ &quot;$EUID&quot; = &quot;0&quot; ]; then</font><br />pathmunge /sbin<br />pathmunge /usr/sbin<br />pathmunge /usr/local/sbin</p><p>&nbsp;</p>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/sbin_ifconfig/#blogcomment</link>
<title><![CDATA[[评论] bash: ifconfig: command not found 解决方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/sbin_ifconfig/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>