您的位置:首页 > 运维架构 > Shell

关于 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)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: