Linux-查看cpu核数和个数、查看内存的命令

cat /proc/cpuinfo | grep ‘physical id‘ | sort | uniq | wc -l
个数

cat /proc/cpuinfo | grep ‘process‘ | sort | uniq | wc -l
核数

cat /proc/meminfo
查看内存

相关推荐