1. View the number of physical CPUs
#cat/proc/cpuinfo |grep "Physical id" |sort |uniq|wc–l
2. View the number of logical CPUs
#cat/proc/cpuinfo |grep "Processor" |wc–l
3. View CPU is a few cores
#cat/proc/cpuinfo |grep "Cores" |uniq
4, check the CPU frequency
#cat/proc/cpuinfo |grep Mhz|uniq
5. # Uname-a
6. Linux euis1 2.6.9-55.elsmp #1 SMP Fri Apr 17:03:35 EDT i686 i686 i386 gnu/linux
(view current operating system kernel information)
7. # Cat/etc/issue | grep Linux
8. Red Hat Enterprise Linux as Release 4 (Nahant Update 5 (view current operating system release information)
9, # cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c
8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz
(see 8 logical CPUs, also know the CPU model)
9 # Cat/proc/cpuinfo | grep physical | uniq-c
4 Physical id:0
4 Physical Id:1
(Description is actually two 4-core CPUs)
10. # getconf long_bit
32
(indicates that the current CPU is running in 32bit mode, but does not mean that the CPU does not support 64bit)
11, # Cat/proc/cpuinfo | grep flags | grep ' LM ' | wc–l
8 (results greater than 0, description support 64bit calculation.) LM means long mode, support LM is 64bit)
A , how to obtain CPU For more information:
Linux command: Cat/proc/cpuinfo
- , using commands to judge several physical CPU , several cores, etc.:
Number of logical CPUs:
# Cat/proc/cpuinfo | grep "Processor" | Wc-l
Number of physical CPUs:
# Cat/proc/cpuinfo | grep "Physical ID" | Sort | Uniq | Wc-l
14. The number of cores per physical CPU:
# Cat/proc/cpuinfo | grep "CPU Cores" | Wc-l
15. Is it hyper-threading? If there are two logical CPUs with the same "core ID", then Hyper-threading is turned on. The number of logical CPUs (possibly cores, threads, or both) in each physical CPU:
# Cat/proc/cpuinfo | grep "Siblings"
1. View CPU Information commands
Cat/proc/cpuinfo
2. View memory Information commands
Cat/proc/meminfo
3. View the hard drive information command
Fdisk-l
Test the hardware information of the machine: View CPU information (model) # Cat/proc/cpuinfo | grep name | Cut-f2-d: | uniq-c 8 intel (R) Xeon (r) CPU e5410 @ 2.3 3ghz (see there are 8 logical CPUs, also know the CPU model) # Cat/proc/cpuinfo | grep Physical | uniq-c 4 physical ID  : 0 4 physical ID &NB Sp : 1 (Description is actually two 4-core CPUs) # getconf long_bit 32 (indicates that the current CPU is running in 32bit mode, But does not mean that the CPU does not support 64bit) # Cat/proc/cpuinfo | grep Flags | grep ' LM ' | wc-l 8 (results greater than 0, description support 64bit calculation. LM means long mode, LM is 64bit) full CPU details, But most of us don't care. # Dmidecode | grep ' Processor information ' view memory information # cat/proc/meminfo # Uname-a linux euis1 2.6.9-55.ELSMP #1 SMP Fri Apr 17:03:35 EDT i686 i686 i386 gnu/linux (view current operating system core information) # CA T/etc/issue | Grep linux red Hat Enterprise Linux as Release 4 (Nahant Update 5) (view current operating system release information) view machine model # Dmideco De | grep "Product Name" view nic information # DMESG | Grep-i eth View operating system version #lsb_release-a
Linux view CPU, memory, version information