dmidecode -s system-serial-number

Category: Administration

dmidecode -s system-serial-number

Read a single DMI string from firmware

Prints one DMI value, here the system serial number, straight from the firmware tables. DMI data describes the hardware as the BIOS reports it. The -s flag accepts other keywords such as system-product-name or bios-version.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.