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
Jak znaleźć najszybszy publiczny serwer DNS w Polsce?
Viewed 1605 times since Mon, May 21, 2018
How to convert RAW image to VDI and otherwise
Viewed 12596 times since Wed, Oct 3, 2018
LVM: Recovering Physical Volume Metadata
Viewed 11791 times since Sat, Jun 2, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 21903 times since Fri, Aug 3, 2018
linux ssh How to Hide the OpenSSH Version Details when Telnet to Port 22
Viewed 1804 times since Wed, Apr 22, 2020
how to list all hard disks in linux from command line
Viewed 1256 times since Mon, Jan 28, 2019
RHEL: Crash kernel dumps configuration and analysis on RHEL 5
Viewed 5599 times since Sat, Jun 2, 2018
How to Analyze or Read OS Watcher Output in three easy steps -- With Example ?
Viewed 14415 times since Thu, Jun 21, 2018
RHEL: Force system to prompt for password in Single User mode
Viewed 4036 times since Sat, Jun 2, 2018
Learn how to align an SSD on Linux
Viewed 9663 times since Fri, May 15, 2020