Linux命令之查看cpu个数、核数、内存总数

一.cpu 个数

cat /proc/cpuinfo | grep "physical id" | uniq

 

二.cpu核数

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

 

三.查看内存总数

cat /proc/meminfo | grep MemTotal

 

文章来源:https://blog.csdn.net/cgwcgw_/article/details/10000053

posted on 2018-06-22 23:13  bijian1013  阅读(4017)  评论(0)    收藏  举报

导航