如何查询服务器的cpu、内存、硬盘信息
001、cpu
a、
[root@pc1 home]# lscpu | head ## lscpu命令 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel
b、
[root@pc1 home]# cat /proc/cpuinfo | head ## 查看cpu详情 processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 154 model name : 12th Gen Intel(R) Core(TM) i5-12500H stepping : 3 microcode : 0x41b cpu MHz : 3110.408 cache size : 18432 KB physical id : 0
002、内存
a、
[root@pc1 home]# free -h ## 内存信息 total used free shared buff/cache available Mem: 3.7G 926M 453M 77M 2.3G 2.3G Swap: 3.9G 6.5M 3.9G
b、
[root@pc1 home]# cat /proc/meminfo | head ## 内存信息 MemTotal: 3861508 kB MemFree: 465500 kB MemAvailable: 2369640 kB Buffers: 36 kB Cached: 1949028 kB SwapCached: 604 kB Active: 1598288 kB Inactive: 1016784 kB Active(anon): 125156 kB Inactive(anon): 620444 kB
003、硬盘
。