Linux Command not Found 问题解决

修改/etc/profile文件,注释掉if语句即可。把下面的if语句注释掉:

# Path manipulation if [ “$EUID” = “0” ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin fi

修改为:

# Path manipulation # if [ “$EUID” = “0” ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin #fi

注:不光是ifconfig命令出现“bash: ifconfig: command not found”,原因非root用户的path中没有/sbin/ifconfig ,其它的命令也可以出现这种情况,,解决的方法是一样的。

路灯和我之间,究竟谁是谁的过客,

Linux Command not Found 问题解决

相关文章:

你感兴趣的文章:

标签云: