Ubuntu查看CPU處理器/RAM記憶體/MB主版資訊

Ubuntu查看CPU/記憶體/主機版資訊

GUI界面

sudo apt install hardinfo

16.04.7 LTS無法安裝訊息如下
The following packages have unmet dependencies:
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

sudo apt install lshw-gtk

16.04.7 LTS無法安裝訊息如下
The following packages have unmet dependencies:
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

Processor Information
Socket Designation: LGA1151
Type: Central Processor
Family: Core i7
Manufacturer: Intel(R) Corporation
Flags:
FPU (Floating-point unit on-chip)
SSE (Streaming SIMD extensions)
SSE2 (Streaming SIMD extensions 2)
Version: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
L1 Cache Handle: 0x003C
L2 Cache Handle: 0x003D
L3 Cache Handle: 0x003E
Core Count: 4
Core Enabled: 4
Thread Count: 8

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' 產品型號

Size: 8 GB
Type: DDR4
Type Detail: Synchronous
Speed: 2133 MT/s Manufacturer: Patriot Part Number: PSD48G213381
Configured Memory Speed: 2133 MT/s

MB主板資訊

sudo dmidecode --string baseboard-product-name

D820MT_D820SF_BM3CE

sudo dmidecode -t 2

Manufacturer: ASUSTeK COMPUTER INC.
Product Name: D820MT_D820SF_BM3CE


其他

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 # 查看使用/可用/總共記憶體空間


留言