linux查看硬件信息命令

linux查看硬件信息命令

 

1、查看显卡信息

[root@comput2 ~]# lspci|grep -i vga
01:03.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] ES1000 (rev 02)
10:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750] (rev a2)

2、查看cpu信息

复制代码
[root@comput2 ~]# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 44
Model name:            Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz

#查看多少块CPU

[root@comput1 ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

 
复制代码

3、查看内存信息

[root@comput2 ~]# free
              total        used        free      shared  buff/cache   available
Mem:       65963972      237636    65352556        1168      373780    65142404
Swap:       4194300           0     4194300

4、查看硬盘

复制代码
[root@comput2 ~]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238.4G  0 disk 
├─sda4   8:4    0   184G  0 part /export/sda4
├─sda2   8:2    0     4G  0 part [SWAP]
├─sda3   8:3    0    50G  0 part /
└─sda1   8:1    0   500M  0 part /boot
复制代码
原文地址:https://www.cnblogs.com/xuaijun/p/7985293.html