同僚扔過來一個rhel7.2的系統,登入後發現沒有安裝ifconfig指令:
# ifconfig
-bash: ifconfig: command not found
先看看環境變量:
# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
在檢視ifconfig指令是否存在:結果沒有發現指令
# ls /sbin/ifconfig
安裝ifconfig指令:
# yum upgrade
# yum install net-tools
OK!