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.

Watch Free Movies

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

Scroll to Top