Centos查看CPU、内存、版本等系统信息
本配置适用于centos6,centos7版本
1.查看cpu:
more /proc/cpuinfo | grep "model name"
grep "model name" /proc/cpuinfo
2.查看内存:
grep MemTotal /proc/meminfo
grep MemTotal /proc/meminfo | cut -f2 -d:
free -m |grep "Mem" | awk '{print $2}'
3.查看cpu是32位还是64位:
4.查看当前linux的版本:
more /etc/RedHat-release
cat /etc/redhat-release
5.查看内核版本:
uname -r
uname -a