Linux - How to get CPU information

Linux - How to get CPU information

 
Question : How to show information of CPU in Linux?
Answer : Command dmidecode with option "t" followed by parameter "processor" could be used to show hardware information related to CPU in Linux.
Example :
[root@server ~]# dmidecode -t processor


Question : How to show number of processor in Linux?
Answer : Command dmidecode with option "t" followed by parameter "processor" could be used to show hardware information related to CPU in Linux. Search for keyword "proc".
Example :
[root@server ~]# dmidecode -t processor|grep -i "proc "|wc -l


Question : How to get machine's model and serial number from Linux operating system?
Answer : Use dmidecode command with option "t" and parameter "1" to display machine's model and serial number information.
Example :
[root@server ~]# dmidecode -t 1
# dmidecode 2.11
SMBIOS 2.6 present.


Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: HP
Product Name: ProLiant DL380 G6
Version: Not Specified
Serial Number: GB8003FKP9
UUID: 33343934-3932-4247-3830-3033464B5039
Wake-up Type: Power Switch
SKU Number: 494329-B21
Family: ProLiant

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Linux: Disks diagnostic using smartctl
Viewed 16017 times since Wed, Jul 25, 2018
Enabling automatic updates in Centos 7 and RHEL 7
Viewed 3257 times since Wed, Oct 17, 2018
logrotate Log Rotate Configuration
Viewed 3911 times since Sun, Jan 12, 2020
LUKS dm-crypt/Device encryption GUIDE
Viewed 3086 times since Fri, Jul 13, 2018
RHEL: Allowing users to ’su’ to "root" / Allowing ’root’ to login directly to the system using ’ssh’
Viewed 3696 times since Sat, Jun 2, 2018
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8972 times since Fri, Jul 13, 2018
CONFIGURE OCFS2
Viewed 9201 times since Sat, Jun 2, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 11028 times since Sun, Sep 30, 2018
stunnel Securing telnet connections with stunnel
Viewed 2308 times since Sun, Dec 6, 2020
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 8769 times since Sat, Jun 2, 2018