更改
创建页面,内容为“查看网卡信息 # dmesg | grep -i eth vi /etc/sysconfig/network-scripts/ifcfg-eth0 cd /proc目录下 然后根据你的需求察看不同的文件,可以看...”
查看网卡信息
# dmesg | grep -i eth
vi /etc/sysconfig/network-scripts/ifcfg-eth0
cd /proc目录下
然后根据你的需求察看不同的文件,可以看到你要的东西
lspci | grep Ethernet
如没有lspci,需要先安装
dmesg |grep -i eth
[root@www.ctohome.com]# lspci | grep Ethernet
最直接最常用的命令:
[root@www.ctohome.com]# free
[root@www.ctohome.com]# cat /proc/cpuinfo
查看硬盘信息(查看硬盘型号和硬盘序列号):
[root@www.ctohome.com]# hdparm -i /dev/sda
[root@www.ctohome.com]# dmesg | grep ATA
# dmesg | grep -i eth
vi /etc/sysconfig/network-scripts/ifcfg-eth0
cd /proc目录下
然后根据你的需求察看不同的文件,可以看到你要的东西
lspci | grep Ethernet
如没有lspci,需要先安装
dmesg |grep -i eth
[root@www.ctohome.com]# lspci | grep Ethernet
最直接最常用的命令:
[root@www.ctohome.com]# free
[root@www.ctohome.com]# cat /proc/cpuinfo
查看硬盘信息(查看硬盘型号和硬盘序列号):
[root@www.ctohome.com]# hdparm -i /dev/sda
[root@www.ctohome.com]# dmesg | grep ATA