在安裝linux之後,想要查硬體資訊可以使用lshw這個工具
這是list hardware的縮寫
可以用
sudo apt-get install lshw
這個指令來安裝
lshw 所提供的資訊非常詳細,大致尚可分為下面幾項:
firmware -- motherboard and BIOS information
cpu -- CPU information
cache -- cache information
memory -- memory information
bank -- specific bank memory information
pci -- PCI bus information
display -- PCI display adapter
multimedia -- PCI audio adapter
pci -- other PCI devices
network -- PCI network adapter
usb -- USB devices
ide -- IDE informationdisk -- individual disks
volume -- volumes on this disk
查詢CPU指令
lscpu
或
/proc/cpuinfo
查詢顯示卡型號
lspci
可以列出pci上的所有裝置
查詢USB裝置
lsusb
列出被系統載入的模組
lsmod
輸出 BIOS 中的資訊,例如主機板的資訊:
dmidecode -t processor > CPU
dmidecode -t slot > PCI 插槽
dmidecode -t system > 主機廠商 d
midecode -t baseboard > on-board 設備