red hat 输入ifconfig bash: ifconfig: command not found的解决办法
2012-04-09 16:32
711 查看
在虚拟机上安装了Redhat,输入命令行ifconfig,会提示bash: ifconfig: command not found。得到高人指点因为在环境变量里,
还没有设置完整变量。输入/sbin/ifconfig或/usr/bin/gcc就可以执行命令行。
最好的办法是给用户配置好路径。vi ~/.bash_profile里,按“i”进入编辑模式,添加一下配置:
PATH=$PATH:/sbin
export PATH
PATH=$PATH:/usr/bin
export PATH。
然后按ESC推出编辑模式,输入【:wq!】 返回命令行模式。输入ifconfig后,就可以执行命令了,如果不行的话,可以把用户注销,然后再登录测试。
还没有设置完整变量。输入/sbin/ifconfig或/usr/bin/gcc就可以执行命令行。
最好的办法是给用户配置好路径。vi ~/.bash_profile里,按“i”进入编辑模式,添加一下配置:
PATH=$PATH:/sbin
export PATH
PATH=$PATH:/usr/bin
export PATH。
然后按ESC推出编辑模式,输入【:wq!】 返回命令行模式。输入ifconfig后,就可以执行命令了,如果不行的话,可以把用户注销,然后再登录测试。
相关文章推荐
- 【Linux】Linux下输入ifconfig提示bash: ifconfig: command not found解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- 【转载】bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- bash: 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系统中shell中执行命令是报:bash: ifconfig: command not found错误的解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- Linux输入命令出现bash:.....:command not found的解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- 关于Red Hat 企业版下输入ifconfig显示not found问题解决办法