Several Methods to view the kernel: 1. uname-A # displays detailed kernel information, Linux localhost. localdomain 2.6.18-92.1.6.el5xen #1 SMP wed Jun 25 12:56:52 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux 2. CAT/etc/issue # display version type Scientific Linux SL release 5.2 (boron)
Kernel \ r on an \ m 3. CAT/proc/version Linux version 2.6.18-92.1.6.el5xen ( [Email protected] ) (GCC version 4.1.2 20071124 (Red Hat 4.1.2-42) #1 SMP wed Jun 25 12:56:52 EDT 2008 View the number of operating system digits: 1.Ls/# If there is lib64 or this directory, the operating system is 64-bit
2.Getconfig long_bitIf the output is 32-bit, 64-bit In 32-bit systems, the int and long types are generally 4 bytes, In 64-bit systems, the int type is still 4 bytes, but long has been changed to 8 bytes. In the inux system, "getconf word_bit" and "getconf long_bit" can be used to obtain the number of digits of word and long.
In a 64-bit system, the values are 32 and 64 respectively. 3. In uname-A , if x86 stands for a 64-bit system, the i386 32-bit System