How to Display Notebook Model Number via Command Line

In this short Linux Guide, I will show you how to display your laptop’s model number, from the command line interface.

The dmidecode command displays this type of information:

$ sudo dmidecode | less

This command gives you a big output, with other information also:

To display only the model name, use one of the following two commands:

$ sudo dmidecode | less | grep Version | sed -n '2p'
$ sudo dmidecode | less | grep 'SKU Number' | head -1

Tagged with: , , , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *




Subscribe to get the latest Linux news and how to guides directly on your e-mail!