For Windows: If you are using Windows, you can check serial number and all other hardware related information in system property using User Interface. You can also get system info using system information command in windows.
For Linux: If you are using any of the Linux systems, you have to run the command to the system details like serial number, manufacturing model… You can do this easily by the dmidecode command in the command line terminal.
It is a command to read DMI table. The name itself depicts as it is a command to decode the value in DMI table.
What is DMI Table in Linux?
DMI table is also called as SMBIO. This table consists of all the hardware, processor, system, BIOS information, etc.
Role of dmidecode Command:
A dmidecode command just fetches the content from this table and display it in the human-readable format on the terminal.
Run this command.
If it is not working, it requires root permission. Try getting admin privilege by running following sudo command.
It will give a long list of information. To shorten it or to get the particular information you have to be specific.
Run the following command.
sudo dmidecode -t system
This command will give complete information about the system.
If you want to get a serial number of the system in any Linux system like Ubuntu, run following command in terminal.
sudo dmidecode -s system-serial-number
This will highlight the serial number of the hardware.
You can also use the dmidecode to read any specific hardware/system parameter by specifying the parameter name.
Note: Kindly make a note. While running any of the dmidecode commands, try all these commands running without sudo first. If you get any error or system ask you for any privilege, use the commands with sudo.
I have tested and verified all these commands on Ubuntu Linux machine. If you are using any other Linux OS system, kindly check, How to get serial number in Linux using the same commands. Do share your result. It will be helpful for other candidates.