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_64View 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:FinalNote: 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\m3. 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_BIT642. file/bin/ls
[root@mongo02~]#file/bin/ls/bin/ls:ELF64-bitLSBexecutable,x86-64,version1(SYSV),dynamicallylinked(usessharedlibs),forGNU/Linux2.6.18,stripped3. 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:FinalThis article is from the "SQL Server Deep Dives" blog, please be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1640435