View the current operating system kernel information
#Uname-
Linux redcat 2.6.31-20-generic # 58-ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
View the current operating system release information
#CAT/etc/issue
Ubuntu 9.10 \ n \ L
View CPU Model
#CAT/proc/cpuinfo | grep name | cut-F2-D: | uniq-C
2 Intel (r) core (TM) 2 Duo CPU p8600 @ 2.40 GHz
(We can see two logical CPUs and the CPU model)
View the number of physical CPUs
#CAT/proc/cpuinfo | grep physical | uniq-C
2 Physical ID: 0
(It indicates that it is actually a 2-core CPU)
View CPU Running Mode
# Getconf long_bit
32
(This indicates that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit)
Check whether the CPU supports 64bit
#CAT/proc/cpuinfo | grep flags | grep 'lm '| WC-L
2
(If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and Lm indicates 64bit)