Linux中查看CPU内存硬盘信息的命令
(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 "磁盘"
相关推荐
涅磐 2020-11-08
服务器端攻城师 2020-07-28
Attend 2020-06-27
88236637 2020-06-25
jiangxinyu 2020-06-15
iamplane 2020-06-14
ScienceExplorer 2020-06-14
baobaozai 2020-06-05
Noontec 2020-06-01
czsay 2020-05-31
GeorgeTH 2020-05-20
卢从利 2020-05-15
happywxp 2020-05-11
jiangtie 2020-05-11
jiayuqicz 2020-05-05
onlykg 2020-05-04
准提童子 2020-04-20