在虚拟机下面安装了Red Hat 之后运行ifconfig命令提示command not find
原因:sbin路径错误
解决方法:
修改/etc/profile文件
将下面的语句注释掉
# Path manipulation
注释掉这个if,即:
#if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
#fi
在虚拟机下面安装了Red Hat 之后运行ifconfig命令提示command not find
原因:sbin路径错误
解决方法:
修改/etc/profile文件
将下面的语句注释掉
# Path manipulation
注释掉这个if,即:
#if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
#fi