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
bash mistakes This page is a compilation of common mistakes made by bash users. Each example is flawed in some way.
Viewed 9179 times since Sun, Dec 6, 2020
10 Linux cryptsetup Examples for LUKS Key Management (How to Add, Remove, Change, Reset LUKS encryption Key)
Viewed 5261 times since Tue, Jul 31, 2018
How To: Linux Hard Disk Encryption With LUKS [ cryptsetup Command ]
Viewed 7405 times since Fri, Jul 13, 2018
LVM: Extend SWAP size by adding a new Logical Volume
Viewed 3238 times since Sat, Jun 2, 2018
LVM: Extend SWAP size by growing existing Logical Volume
Viewed 2547 times since Sat, Jun 2, 2018
Open SSL HowTo: Decode SSL Certificate
Viewed 6178 times since Mon, Feb 18, 2019
Understanding System auditing with auditd
Viewed 10006 times since Fri, Apr 5, 2019
HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
Viewed 5388 times since Fri, Nov 30, 2018
ubuntu How to Reset Forgotten Passwords in Ubuntu 16.04
Viewed 3497 times since Tue, Dec 8, 2020
Secure Secure Shell
Viewed 10968 times since Fri, Aug 21, 2020