香港vps的怎么看ubuntu内存条型号

已关闭留言

香港vpsubuntu内存条型号的查看方法:

1、首先在ubuntu系统中打开终端命令行模式,快捷方式:【Ctrl+Alt+T】;

2、然后输入以下命令查看内存条型号即可。

sudo dmidecode -t memory

相关命令:

CPU

型号:grep “model name” /proc/cpuinfo |awk -F ‘:’ ‘{print $NF}’

数量:lscpu |grep “CPU socket” |awk ‘{print $NF}’ lscpu |grep “Socket” |awk ‘{print $NF}’

每个CPU的核数:lscpu |grep “Core(s) per socket” |awk ‘{print $NF}’

内存:

卡槽数量:sudo dmidecode -t memory |grep “Number Of Devices” |awk ‘{print $NF}’sudo dmidecode -t memory |grep “Associated Memory Slots” |awk ‘{print $NF}’

内存数量:sudo dmidecode -t memory |grep -A16 “Memory Device$” |grep ‘Size:.*MB’ |wc -l

内存型号:sudo dmidecode -t memory

内存支持类型:sudo dmidecode -t memory |grep -A16 “Memory Device$” |grep “Type:”

每个内存频率:sudo dmidecode -t memory |grep -A16 “Memory Device$” |grep “Speed:”

每个内存大小:sudo dmidecode -t memory |grep -A16 “Memory Device$” |grep “Size:”

硬盘:

硬盘数量、大小:sudo fdisk -l |grep “Disk /dev/sd”

硬盘型号:sudo hdparm -i /dev/sda |grep “Model”