ubuntu內存條型號的查看方法:1、打開終端;2、輸入“sudo dmidecode -t memory”命令查看內存條型號即可;
具體操作步驟:
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"