In Linux, how does one view the version information, including the number of digits and multi-core information? Today, let's take a look at the linux version information, CPU kernel information, CPU model, and so on. The entire CPU information is clear at a glance. I believe it will not disappoint everyone.
# Uname-
Linux euis1 2.6.9-55. ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(View the kernel information of the current operating system in Linux)
# Cat/etc/issue | grep Linux
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
(View the current version of the operating system in Linux)
# Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c
8 Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz
(In Linux, there are 8 logical CPUs and the cpu model is available)
# Cat/proc/cpuinfo | grep physical | uniq-c
4 physical id: 0
4 physical id: 1
(In Linux, the version is actually two 4-core CPUs)
# Getconf LONG_BIT
32
(The Linux version indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit)
# Cat/proc/cpuinfo | grep flags | grep 'lm '| wc-l
8
(If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and lm indicates 64bit)
Finally, let's take a full look at the cpu physical information, but most of us don't care about it.
# Dmidecode | grep-A48 'processor Information $'