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.磁盘信息:

 

posted @ 2019-07-22 09:14  禾子、  阅读(404)  评论(0编辑  收藏  举报