how to get the serial number of laptop in ubuntu code example Example: how to check laptop serial number in ubuntu sudo dmidecode -t system | grep Serial