"如何在Linux CentOS下查看硬件信息" 修訂間的差異

出自 YTYZX有图有真相的百科
前往: 導覽搜尋
(创建页面,内容为“查看网卡信息 # dmesg | grep -i eth vi /etc/sysconfig/network-scripts/ifcfg-eth0 cd /proc目录下 然后根据你的需求察看不同的文件,可以看...”)
 
行 1: 行 1:
 查看网卡信息
+
  1. 查看网卡信息dmesg | grep -i eth
# dmesg | grep -i eth
+
[[File:LinuxEth.png]]
 +
2.查看内存信息:free
 +
[[File:LinuxMemory.png]]
 +
3.查看:dmesg |grep -i ATA
 +
[[File:LinuxATA.png]]
  
 
vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
vi /etc/sysconfig/network-scripts/ifcfg-eth0

於 2016年3月20日 (日) 21:39 的修訂

1.查看网卡信息:  dmesg | grep -i eth

LinuxEth.png

2.查看内存信息:free

LinuxMemory.png

3.查看:dmesg |grep -i ATA

LinuxATA.png

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