1 # uname-a2 3 Linux euis1 2.6.9-55.elsmp #1 SMP Fri April 17:03:35 EDT i686 i686 i386 gnu/linux4 5 (view current operating system kernel information)6 7 8 9 Ten # Cat/etc/issue | grep Linux One A Red Hat Enterprise Linux as Release 4 (Nahant Update 5) - - (view current operating system release information) the - - - + # Cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c - + 8 Intel (R) Xeon (r) CPU E5410 @ 2.33GHz A at (see 8 logical CPUs, also know the CPU model) - - - # Cat/proc/cpuinfo | grep physical | uniq-c - - 4 Physical id:0 in - 4 Physical Id:1 to + (description is actually two 4-core CPUs) - the * # getconf Long_bit $ Panax Notoginseng + - the (indicates that the current CPU is running in 32bit mode, but does not mean that the CPU does not support 64bit) + A the # 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) - - ======================================== the - Wuyi the View the Linux system version, the number of bits related commands - Wu - About 1. View the kernel version $ - [email protected] ~]$ cat/etc/issue - Red Hat Enterprise Linux as Release 4 (Nahant) - KERNEL/R on an/m A + [email protected] ~]$ cat/proc/version the Linux version 2.6.9-5.ELSMP ([email protected]) (GCC version 3.4.3 20041212 (Red Hat 3.4.3-9.el4)) #1 SMP Wed Jan 5 19 : 30:39 EST 2005 - $ [email protected] ~]$ uname-r the 2.6.9-5.ELSMP the the the - 2. View the number of operating system bits in [email protected] ~]$ ls/#如果有lib64或这个目录, the operating system is 64-bit the bin Boot Dev etc home initrd lib Lost+found media misc mnt opt proc root sbin selinux SRV sys tmp usr var the About [email protected] ~]$ getconf long_bit the32
Linux view CPU Bits kernel Parameters command (GO)