dmidecode
dmidecode – DMI table decoder
dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) ta‐ ble contents in a human-readable format. This table contains a descrip‐ tion of the system's hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable…
Source: man dmidecode
dmidecode Display the DMI (alternatively known as SMBIOS) table contents in a human-readable format. Requires root privileges.
Show all DMI table contents: sudo dmidecode
Show the BIOS version: sudo dmidecode -s bios-version
Show the system's serial number: sudo dmidecode -s system-serial-number
Show BIOS information: sudo dmidecode -t bios
Show CPU information: sudo dmidecode -t processor
Show memory information: sudo dmidecode -t memory
source: curl cht.sh/dmidecode