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
systemctl Use systemd to Start a Linux Service at Boot
Viewed 139 times since Mon, Dec 7, 2020
debian Debian/Ubuntu Linux: Find If Installed APT Package Includes a Fix/Patch Via CVE Number
Viewed 747 times since Sun, Sep 23, 2018
RHEL: Remove existing SAN LUNs
Viewed 1189 times since Sat, Jun 2, 2018
HowTo: Create CSR using OpenSSL Without Prompt (Non-Interactive)
Viewed 1227 times since Mon, Feb 18, 2019
Enabling or disabling a repository using Red Hat Subscription Management
Viewed 1246 times since Mon, Oct 29, 2018
Linux Linux Network Statistics Tools / Commands
Viewed 250 times since Mon, Sep 21, 2020
How to automate SSH login with password? ssh autologin
Viewed 744 times since Fri, Jun 8, 2018
ubuntu How to Reset Forgotten Root Password in Ubuntu
Viewed 198 times since Tue, Dec 8, 2020
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 1010 times since Fri, May 15, 2020
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 1550 times since Sun, May 27, 2018