bash: ifconfig: command not found


bash: ifconfig: command not found

此为环境变量问题:

方法一:使用命令,export PATH=$PATH:/sbin

方法二:/sbin/ifconfig

方法三:修改/etc/profile文件,注释掉if语句即可,如红色所示

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

你可能感兴趣的:(bash)