关于 bash: ifconfig: command not found解决方案
2010-08-14 15:47
666 查看
[xianghui@localhost xianghui]$ su root
Password:
[root@localhost xianghui]# ifconfig
bash: ifconfig: command not found
那是你没有完全取得root权限,你可以加个参数 -l,就行了
[root@localhost xianghui]# su -l
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:C9:82:25
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6290 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:667643 (651.9 Kb) TX bytes:2052 (2.0 Kb)
Interrupt:10 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9113 errors:0 dropped:0 overruns:0 frame:0
TX packets:9113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:623429 (608.8 Kb) TX bytes:623429 (608.8 Kb)
[root@localhost root]#
可以看见eth0第一个以太网卡,lo回环设备(loop back)
Password:
[root@localhost xianghui]# ifconfig
bash: ifconfig: command not found
那是你没有完全取得root权限,你可以加个参数 -l,就行了
[root@localhost xianghui]# su -l
[root@localhost root]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:C9:82:25
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6290 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:667643 (651.9 Kb) TX bytes:2052 (2.0 Kb)
Interrupt:10 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:9113 errors:0 dropped:0 overruns:0 frame:0
TX packets:9113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:623429 (608.8 Kb) TX bytes:623429 (608.8 Kb)
[root@localhost root]#
可以看见eth0第一个以太网卡,lo回环设备(loop back)
相关文章推荐
- 关于jps命令-bash: jps: command not found 解决方案
- Linux关于bash:ifconfig command not found 解决方法
- 关于 linux shell 报错 bash:$'\r': command not found 的解决方案
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found
- ifconfig命令无法找到,提示bash: ifconfig: command not found
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found
- bash: ifconfig: command not found 解决之道
- linux 报 -bash: xx : command not found 解决方案
- bash: ifconfig: command not found 解决办法
- linux ifconfig 无法使用 bash: ifconfig: command not found
- Centos7 ifconfig command not found解决方案
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- bash: ifconfig: command not found 解决办法
- -bash: ifconfig: command not found
- 解决bash: ifconfig: command not found
- centos下一个bash: XXX: command not found解决方案
- 关于使用mail命令产生:-bash: mail: command not found的解决方法