查看CPU个数
cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
查看CPU核数
cat /proc/cpuinfo | grep "cpu cores" | uniq
查看CPU型号
cat /proc/cpuinfo | grep 'model name' |uniq
查看内存总数
cat /proc/meminfo | grep MemTotal
查看硬盘大小
fdisk -l | grep Disk
网友评论