1.bash: ifconfig: command not found 解决办法
方法一:[root@localhost sbin]$ /sbin/ifconfig 就可以出现使用了
方法二:修改/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