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
ZFS: Grow/Shrink an existing zfs filesystem
Viewed 6345 times since Sun, Jun 3, 2018
How To: Create Self-Signed Certificate – OpenSSL
Viewed 3005 times since Mon, Feb 18, 2019
Prosty skaner portów TCP w bash
Viewed 3330 times since Thu, May 24, 2018
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 9609 times since Sun, Nov 22, 2020
SSL HowTo: Decode CSR
Viewed 5019 times since Mon, Feb 18, 2019
Fedora 32: Simple Local File-Sharing with Samba CIFS Linux
Viewed 8831 times since Sun, Dec 6, 2020
Top 20 OpenSSH Server Best Security Practices - good article
Viewed 10708 times since Mon, Oct 1, 2018
chrt command: Set / Manipulate Real Time Attributes of a Linux Process
Viewed 11058 times since Mon, Feb 17, 2020
RHCS6: Basic operations on clustered services
Viewed 2693 times since Sun, Jun 3, 2018
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 5041 times since Tue, Dec 4, 2018