Linux Get CPU Information

This post is one of those ‘reminder’ types which is to help me remember the various commands able to retrieve the underlying CPU information on a Linux command line. In this instance the commands were executed on the latest version of Ubuntu server, purely because I happen to have a virtual machine with it installed running right now.

First off we have lscpu.


I can also grab the information via cat /proc/cpuinfo


Alternatively I could grab the data from the lshw command.


Next up let’s use dmicode.


Not that I will likely use it much but the nproc command lists the number of processors.



OK that’s all of the ways I can think of right now – feel free to comment if you know of any others, though I should clarify I’m only interested in those which can be done natively and don’t require extra software to be installed.


Leave a Reply