Ubuntu查看CPU處理器/RAM記憶體/MB主版資訊
Ubuntu查看CPU/記憶體/主機版資訊
GUI界面
sudo apt install hardinfo
code : Depends: libc6 (>= 2.28) but 2.23-0ubuntu11.3 is to be installed
Depends: libgssapi-krb5-2 (>= 1.17) but 1.13.2+dfsg-5ubuntu2.2 is to be installed
Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-0ubuntu1 is to be installed
Recommends: libvulkan1 but it is not going to be installed
code : Depends: libc6 (>= 2.28) but 2.23-0ubuntu11.3 is to be installed
Depends: libgssapi-krb5-2 (>= 1.17) but 1.13.2+dfsg-5ubuntu2.2 is to be installed
Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-0ubuntu1 is to be installed
Recommends: libvulkan1 but it is not going to be installed
純指令
先安裝dmidecode
sudo apt install dmidecode
DMI (Desktop Management Interface)
CPU處理器
sudo dmidecode --type processor
若不能用--type processor,可以改成--type 4
RAM記憶體
sudo dmidecode --type memory | grep -e Size -e Type: -e Speed -e Manufacturer: -e 'Part Number'
若不能用--type memory,可以改成--type 17
sudo dmidecode --type 17 | grep -e Size -e Type: -e Speed -e Manufacturer: -e 'Part Number'
-e Size RAM容量
-e Type: DDR第幾代
-e Speed RAM運作速度 DDR4常見3200, 2666, 2133 DDR3常見1333, 1866, 2133, 2666
-e Manufacturer: 製造商
-e 'Part Number' 產品型號
MB主板資訊
sudo dmidecode --string baseboard-product-name
sudo dmidecode -t 2
其他
lscpu # 查看cpu 資訊,支援指令集
sudo lshw # 查看硬體
- sudo lshw -short # 所有的資訊簡短版
- sudo lshw -C memory # 看memory部份
- sudo lshw -C network # 看network部份
- -C 可用 system, processor, multimedia, disk, display, ....
lspci # 查看匯流排, 精細可以-vvv
lsusb # 查看usb裝置
lsblk # 查看硬碟/SDD與分割區
df -h # 查看mount路徑的使用/可用/總共硬碟空間
free -h # 查看使用/可用/總共記憶體空間
留言