How to Get the Processor Manufacture Information of a Machine

Posted on

Introduction

This is an article which is focus on how to get the processor information of a machine as it shows in the title of it. There are a lot of information regarding on the processor that is very useful. The information can be the manufacturer of the processor, the speed of the processor and even the core size of the processor among other. In this article context, the focus in only retrieving the information about the processor’s manufacturer. There are lots of way or methods to get that information. The following is the list of methods or ways to get them.

lshw

One of the main information about the processor is certainly the manufacturer of that processor. It will give precise information about the processor’s manufacturer. This command must be run as ‘root’ or ‘superuser’ account. But according to the experience on executing the command, apparently in order to retrieve the information about the manufacturer of the processor, a normal user is able to perform it. Below is the command pattern to retrieve the processor’s manufacturer information :

lshw -class processor | grep vendor

The execution of the above command exist in the following output :

Using a normal user account

user@hostname:~$ lshw -class processor | grep vendor
WARNING: you should run this program as super-user.
       vendor: Intel Corp.
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
user@hostname:~$ 

Using the ‘root’ account :

root@hostname ~# lshw -class processor | grep vendor
       vendor: Intel Corp.  
root@hostname ~# 

/proc/cpuinfo

Actually, the information about the processor manufacturer is available in a file. That file is the file with the following full path of ‘/proc/cpuinfo’. Just execute with the ‘cat’ command while filtering the information with the right string pattern to get the processor manufacturer’s information. The following is the command path :

cat /proc/cpuinfo | grep vendor_id | uniq
cat : It is a command executes the tool, utility or program package for concatenating files and print it in the standard output. By default, it is printing to the monitor. 
/proc/cpuinfo : The full path with the filename where the information about the processor's manufacturer information exist
grep vendor_id : The filter for only printing the text containing string of vendor_id
uniq : The filter for removing duplicate liness
user@hostname:~$ cat /proc/cpuinfo | grep vendor_id | uniq
vendor_id : GenuineIntel
user@hostname:~$

 

Leave a Reply