1.内存

查看内存
#free -m
total used free shared buff/cache available
Mem:
Swap:

2.CPU

查看逻辑cpu个数:
#cat /proc/cpuinfo | grep "processor" | wc -l 查看物理 cpu个数:
#cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l #cat /proc/cpuinfo | grep physical | uniq -c
physical id :
address sizes : bits physical, bits virtual
physical id :
address sizes : bits physical, bits virtual
physical id :
address sizes : bits physical, bits virtual
physical id :
address sizes : bits physical, bits virtual
physical id :
address sizes : bits physical, bits virtual 查看cpu cores核数: #cat /proc/cpuinfo | grep "cpu cores" | wc -l 查看cpu 主频、型号: .3GHz
#cat /proc/cpuinfo | grep name |cut -f2 -d: | uniq -c
Intel(R) Xeon(R) CPU E5- v3 @ .30GHz

3.磁盘大小

查看磁盘空间大小
sudo fdisk -l | grep "Disk /dev/sda"
#Disk /dev/sda: GiB, bytes, sectors
05-11 14:03