How to view version information, including the number of bits and multicore information under Linux, today we'll take a look at Linux view version information and view CPU kernel information, CPU specific models and so on, the entire CPU information at a glance. I believe I will not let you down.
# uname-a
Linux euis1 2.6.9-55.elsmp #1 SMP Fri April 17:03:35 EDT i686 i686 i386 gnu/linux
(Linux view version current operating system kernel information)
# Cat/etc/issue | grep Linux
Red Hat Enterprise Linux as Release 4 (Nahant Update 5)
(Linux view version current operating system release information)
# Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c
8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz
(Linux View CPU has 8 logical CPUs, also know the CPU model)
# Cat/proc/cpuinfo | grep physical | uniq-c
4 Physical id:0
4 Physical Id:1
(Linux View release Notes are actually two 4-core CPUs)
# getconf Long_bit
+
(Linux view version 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
(the result is greater than 0, indicating support for 64bit calculations. LM refers to long mode, which supports LM is 64bit)
Finally, a complete look at the CPU physical information, but most of us do not care.
# Dmidecode | grep-a48 ' Processor information$ '
View the CPU and memory information of the machine under Linux