centos操作系统查看CPU内存硬盘等配置

1、查看CPU型号:

1.[root@srv /]# more /proc/cpuinfo | grep "model name" 
2.root@srv /]# grep "model name" /proc/cpuinfo
3.[root@srv /]# grep "model name" /proc/cpuinfo | cut -f2 -d:

2、查看物理CPU的个数

cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l

3、查看逻辑CPU的个数

cat /proc/cpuinfo |grep "processor"|wc -l

4、查看CPU是几核

cat /proc/cpuinfo |grep "cores"|uniq

5、查看当前linux的版本

#more /etc/[RedHat](http://www.linuxidc.com/topicnews.aspx?tid=10)-release
#cat /etc/redhat-release

6、查看内核版本

#uname -r
#uname -a

7、查看硬盘

df -h

你可能感兴趣的:(centos操作系统查看CPU内存硬盘等配置)