centos硬件查询
1.cpu个数:
[root@localhost ~]# cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l
cpu核心数:
[root@localhost ~]# cat /proc/cpuinfo |grep "cpu cores"|uniq
2.内存信息:
[root@localhost ~]# cat /proc/meminfo |grep MemTotal
3.磁盘信息:
热爱世间万物,无最爱,无例外、