Several Common commands for viewing hardware resources in linux: 1. graphics card information dmesg | grep-I vga lspci | grep-I vga // view graphics card information 2. dmidecode | grep-I 'serrial number' // view the motherboard information and the serial number of the motherboard. CPU information # Use the/proc file system cat/proc/cpuinfo dmesg | grep-I cpu # view the boot information dmidecode-t processor4. hard disk information fdisk-l // partition information df-h // size du-h // usage dmesg | grep sda5. memory information cat/proc/meminfo dmesg | grep mem free-m vmstat dmldecode | grep-I mem6. Nic information dmesg | grep-I eth lspci | grep-I ettings. mouse and keyboard and USB information cat/proc/bus/input/devices view keyboard and mouse cat/proc/bus/usb/devices view USB devices cat/proc/interrupts8. sound card information lspci | grep-I vga dmesg | grep-I vga9. other commands lspci (display external device information, information such as USB and nic)