2012年6月18日

ifconfig: command not found [centos 5]

摘要: 问题:在red hat enterprise linux 5中查询IP地址时,输入ifconfig命令报错:“ifconfig: command not found”原因:ifconfig命令所在路径/sbin未包含在系统环境变量PATH中解决方法:1. 直接输入:/sbin/ifconfig2. 临时修改环境变量:在shell中输入 $export PATH = $PATH:/sbin 然后再输入ifconfig命令即可,但是这只是临时更改了shell中的PATH,如果关闭shell,则修改消失,下次还需要重复如上操作3.永久修改PATH变量使之包含/sbin路径: 打开/etc/profi 阅读全文

posted @ 2012-06-18 09:52 Lo0ong 阅读(672) 评论(0) 推荐(0) 编辑

导航