Linux commands to view hardware information

dmidecode -t 1 # View the host when a physical host or virtual host
dmidecode -t 2 # view motherboard information
dmidecode -t 16 # to view memory information
dmidecode -P -A5 "Memory Device" | grep Size # view the current memory and number of slots
dmidecode -t 17 # to view memory several
dmidecode -t 4 # View CPU information

Guess you like

Origin blog.51cto.com/3037673/2443922