Linux:查看CPU核数、内存大小和CPU类型的命令

查看CPU类型:

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

运行结果:

 查看CPU核数:

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

运行结果:

 查看Linux内存大小:

cat /proc/meminfo | grep MemTotal

运行结果:

你可能感兴趣的:(Linux,linux,运维,服务器)