Linux 下的硬體資訊

CPU
# cat /proc/cpuinfo

# dmidecode -t processor

# yum install lshw –enablerepo=epel
# apt-get install lshw
# lshw[@more@]
記憶體
# dmidecode -t memory

記憶體速度
# dmidecode -t memory | grep Speed | uniq
        Speed: 1066 MHz

最多能插的記憶體 384GB
# dmidecode -t memory | grep Max
        Maximum Capacity: 384 GB

支援的記憶體種類
# dmidecode -t memory | grep Type: | uniq
        Error Correction Type: Multi-bit ECC
        Type: DDR3

系統目前插的記憶體容量 4096MB
# dmidecode -t memory | grep Size
        Size: 2048 MB
        Size: No Module Installed
        Size: 2048 MB
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed
        Size: No Module Installed

# dmidecode -t 可偵測的參數
bios, system, baseboard, chassis, processor, memory, cache, connector, slot