linux服务器常用硬件查询操作
- 查看服务器内存条数
[root@test ~]# dmidecode |grep -P -A5 "Memory\s+Device" |grep Size |grep -v Range
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
[root@test ~]# dmidecode |grep -P -A5 "Memory\s+Device" |grep Size |grep -v Range
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB
Size: 32 GB