(1)CPU
- 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
(2)内存
命令:cat /proc/meminfo | grep MemTotal
(3)硬盘
命令:fdisk -l | grep Disk 或者 fdisk -l | grep "磁盘"