View the kernel version, system version, and number of digits in CentOS

Source: Internet
Author: User

View the kernel version, system version, and number of digits in CentOS

View Linux kernel version

[root@mongo02~]#cat/proc/versionLinuxversion2.6.32-358.el6.x86_64(mockbuild@c6b8.bsys.dev.centos.org)(gccversion4.4.720120313(RedHat4.4.7-3)(GCC))#1SMPFriFeb2200:31:26UTC2013[root@mongo02~]#uname-aLinuxmongo022.6.32-358.el6.x86_64#1SMPFriFeb2200:31:26UTC2013x86_64x86_64x86_64GNU/Linux[root@mongo02~]#uname-r2.6.32-358.el6.x86_64

View the operating system version

1. List all version information

[root@mongo02~]#lsb_release-aLSBVersion::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributorID:CentOSDescription:CentOSrelease6.4(Final)Release:6.4Codename:Final

Note: This command applies to all linux releases, including Redhat, SuSE, and Debian.

2. Run cat/etc/issue.

[root@mongo02~]#cat/etc/issueCentOSrelease6.4(Final)Kernel\ronan\m

3. Run cat/etc/redhat-release.

[root@mongo02~]#cat/etc/redhat-releaseCentOSrelease6.4(Final)

Check whether the system is 64-bit or 32-bit.

1. getconf LONG_BIT or getconf WORD_BIT

[root@mongo02~]#getconfLONG_BIT64

2. file/bin/ls

[root@mongo02~]#file/bin/ls/bin/ls:ELF64-bitLSBexecutable,x86-64,version1(SYSV),dynamicallylinked(usessharedlibs),forGNU/Linux2.6.18,stripped

3. lsb_release-

[root@mongo02~]#lsb_release-aLSBVersion::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributorID:CentOSDescription:CentOSrelease6.4(Final)Release:6.4Codename:Final

This article is from the "SQL Server Deep Dives" blog, please be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1640435

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.