# 查詢 Linux 設備 ## 作業系統 ```=shell $ cat /etc/os-release ``` ## 主機板 ```=shell $ sudo dmidecode -t 2 ``` ## CPU ```=shell $ cat /proc/cpuinfo ``` ## 顯示卡 ```=shell $ nvidia-smi -L ``` ## 記憶體 ```=shell $ sudo dmidecode -t 17 ``` ## 硬碟 ```=shell sudo apt-get install smartmontools -y ``` #### SATA ```=shell sudo smartctl -i /dev/sda ``` #### M.2 ```=shell sudo smartctl -i /dev/nvme0 ```