1. 程式人生 > >Linux下檢視記憶體型號、主機板、硬碟等等

Linux下檢視記憶體型號、主機板、硬碟等等

首先檢視是否安裝了dmidecode工具

[[email protected] ~]# dmidecode

  1. Linux 檢視記憶體的插槽數,已經使用多少插槽.每條記憶體多大:
    [[email protected] ~]# dmidecode|grep -A5 "Memory Device"|grep Size|grep -v Range
    Size: 4096 MB
    Size: 4096 MB
    Size: No Module Installed
    Size: No Module Installed

  2. Linux 檢視記憶體的頻率:
    [[email protected]

    ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
    Speed: 2400 MT/s
    Speed: 2400 MT/s
    Speed: Unknown
    Speed: Unknown

  3. 在linux檢視記憶體型號的命令:
    [[email protected] ~]# dmidecode -t memory

  4. 最大支援幾G記憶體
    [[email protected] ~]# dmidecode|grep -P 'Maximum\s+Capacity'

  5. 檢視主機板型號:
    [[email protected] ~]# dmidecode |grep -A16 "System Information$"

  6. 記憶體槽及記憶體條:
    [[email protected] ~]# dmidecode |grep -A16 "Memory Device$"

  7. 總共幾個插槽,已使用幾個插槽
    [[email protected] ~]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range

  8. 硬碟:
    [[email protected] ~]# fdisk -l
    [[email protected] ~]# smartctl -a /dev/sda

  9. 網絡卡:
    [[email protected]

    ~]# mii-tool

  10. 檢視cpu個數與頻率
    [[email protected] ~]# cat /proc/cpuinfo

  11. 檢視系統品牌和型號
    [[email protected] ~]# dmidecode |grep "Product Name"