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
ZPOOL: Detach a submirror from a mirrored zpool
Viewed 634 times since Sun, Jun 3, 2018
HowTo: The Ultimate Logrotate Command Tutorial with 10 Examples
Viewed 827 times since Fri, Nov 30, 2018
Linux File Systems (mkfs, mount, fstab) ext4
Viewed 801 times since Sat, Jun 2, 2018
RHEL: Scan and configure new SAN (fibre channel) LUNs
Viewed 1095 times since Sun, May 27, 2018
OpenSSL: Find Out SSL Key Length – Linux Command Line
Viewed 426 times since Mon, Feb 18, 2019
LVM: Mount LVM Partition(s) in Rescue Mode
Viewed 858 times since Sat, Jun 2, 2018
INSTALACJA MIB SNMP W SYSTEMIE CENTOS/RHEL 6
Viewed 574 times since Fri, Nov 30, 2018
Tip: SSD and Linux. Enable TRIM and check if it works
Viewed 101 times since Fri, May 15, 2020
How to sort IP addresses in Linux
Viewed 992 times since Sun, May 20, 2018
sed Delete / Remove ^M Carriage Return (Line Feed / CRLF) on Linux or Unix
Viewed 516 times since Thu, Feb 7, 2019