centos:运行ifconfig提示command not found的解决
centos:运行ifconfig提示command not found的解决
centos:运行ifconfig提示command not found的解决
原因:/bin /sbin等一些的路径并未添加到环境变量中
不妨做个试验:
cd /etc/sbin
www.2cto.com
./ifconfg
正确显示结果。
编辑/etc/profile等文件,将这些路径添加至环境变量中
eg:
vi /home/用户目录/.bash_profile中添加
PATH=$PATH:$HOME/bin:/sbin:/bin
export PATH
作者 wcily123
评论暂时关闭