If you need to contact support or track inventory, finding the serial number of your Linux machine is essential. You can retrieve this directly from the system hardware without needing to look at physical stickers.
Using the dmidecode command
- Open your terminal.
- Type the following command:
sudo dmidecode -s system-serial-number - Press Enter. You may be prompted to enter your administrator password.
- The terminal will output the hardware serial number of your machine.