Ubuntu12.04 view the kernel version and number of digits of the system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.