Get System Serial and Model from Command Line

Many times for some or the other reason we may need to look for serial number and model of the system. We generally do that turning our laptops upside down or by looking on CPU cabinet panels.

Well there’s a much easier way to look for them using command line. If you are running Windows just issue below commands in the command prompt.

For Serial Number

wmic bios get serialnumber

For Manufacturer

wmic csproduct get vendor

For Model

wmic csproduct get name




The above commands make use of Windows Management Instrumentation (WMI)

If you use Linux, a tool called dmidecode comes to the rescue. Just issue below command in terminal with elevated privilege and you would get the necessary details

dmidecode –t system

Use sudo dmidecode –t system on Debian based Linux distros like Ubuntu



Use su dmidecode –t system on RPM based Linux distros like Fedora




dmidecode is available on most of the new distros by default. If it is not available on your system you can install it from the repository or get it from here to compile and install.


Note: Cross posted from Experience – Inspire – Contribute.


4 thoughts on “Get System Serial and Model from Command Line

  1. Thank you very much sir.its very useful for me.
    Hi sir, I am Muniyappan.v working at Merittrac. I want to learn VMWare and cloud computing. kindly suggest me witch one i can take.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s