1、查看cpu物理核数

cat /proc/cpuinfo| grep “cpu cores”| uniq

2、查看cpu逻辑核数

cat /proc/cpuinfo| grep “processor”| wc -l

3、查看内存大小

cat /proc/meminfo| grep MemTotal

Comments are closed.

Post Navigation