赞
踩
mac系统执行ifconfig居然提示command not found,查了一下发现原来换位置了,在/sbin目录下,然而sbin目录并不在系统环境变量中。
解决办法:
vi /etc/profile
行底增加:export PATH="$PATH":/sbin
保存,执行:source /etc/profile
立刻生效