解决bash: ifconfig: command not found

来源:互联网 发布:sai for mac 没有压感 编辑:程序博客网 时间:2024/05/22 06:10

从非root用户登陆,执行ifconfig命令出现“bash: ifconfig: command not found”,原因非root用户的path中没有/sbin/ifconfig

 

解决:

1. 直接执行/sbin/ifconfig

2. 用“su - ”切换root用户,执行命令

3. 执行

 

原创粉丝点击