ifconfig: command not found
来源:互联网 发布:linux禁ping设置 编辑:程序博客网 时间:2024/05/19 20:39
问题:在red hat enterprise linux 5中查询IP地址时,输入ifconfig命令报错:“ifconfig: command not found”原因:ifconfig命令所在路径/sbin未包含在系统环境变量PATH中
解决方法:
1. 直接输入:/sbin/ifconfig
2. 临时修改环境变量:在shell中输入
$export PATH = $PATH:/sbin
然后再输入ifconfig命令即可,但是这只是临时更改了shell中的PATH,如果关闭shell,则修改消失,下次还需要重复如上操作
3.永久修改PATH变量使之包含/sbin路径:
打开/etc/profile文件,在其中输入export PATH=$PATH:/sbin,保存并重启X即可,这样一来,PATH路径永久修改成功,以后任何时候只需书序ifconfig命令即可
1 0
- ifconfig command not found
- ifconfig: command not found
- ifconfig command not found
- ifconfig: command not found
- ifconfig: command not found
- ifconfig command not found
- ifconfig: command not found
- ifconfig (command not found)
- ifconfig command not found
- ifconfig: command not found
- ifconfig: command not found
- ifconfig command not found
- ifconfig: command not found
- ifconfig command not found
- bash: ifconfig: command not found
- bash: ifconfig: command not found
- bash: ifconfig: command not found
- bash: ifconfig: command not found
- Linux之间实现目录共享
- python解析json:json模块
- java应用中方法改为synchronized后发布时的注意事项
- [转载]用Python做数据处理必看的12 个使效率倍增的Pandas技巧
- 4016: [FJOI2014]最短路径树问题
- ifconfig: command not found
- 学nodejs坑之---express 安装不是内部或外部命令
- linux基本操作命令
- AdminEAP框架-头像上传功能实现
- CSS3background中属性值介绍
- 网络状态代码
- HTML5 Canvas 图像动画的实现
- 1017: [JSOI2008]魔兽地图DotR
- Sublime Text 3使用SublimeLinter配置JS,CSS,HTML语法检查