CentOS View kernel version, system version, number of system bits
View Linux kernel versions
[Email protected] ~]# cat/proc/version Linux version 2.6.32-358.el6.x86_64 ([email protected]) (GCC version 4.4.720120 313 (Red Hat 4.4.7-3) (GCC)) #1 SMP Fri Feb 00:31:26 UTC [[email protected] ~]# uname-a Linux mongo02 2.6.3 2-358.el6.x86_64 #1 SMP Fri Feb 00:31:26 UTC x86_64 x86_64x86_64 gnu/linux [[email protected] ~]# Uname-r 2. 6.32-358.el6.x86_64
Viewing the operating system version
1. List all version information
[Email protected] ~]# lsb_release-a LSB Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:gra Phics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor Id:centos Description:ce Ntos release 6.4 (Final) release:6.4 codename:final
Note: This command applies to all Linux, including Redhat, SuSE, Debian, and other distributions.
2. Executive Cat/etc/issue
[Email protected] ~]# cat/etc/issue CentOS release 6.4 (Final) Kernel \ r on an \m
3. Executive Cat/etc/redhat-release
[Email protected] ~]# cat/etc/redhat-release CentOS release 6.4 (Final)
See if the system is 64-bit or 32-bit
1.getconf long_bit or getconf word_bit
[Email protected] ~]# getconf long_bit 64
2.file/bin/ls
[Email protected] ~]# file/bin/ls/bin/ls:elf 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (US ES shared libs), for Gnu/linux 2.6.18, stripped
3.lsb_release-a
[Email protected] ~]# lsb_release-a LSB Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:gra Phics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor Id:centos Description:ce Ntos release 6.4 (Final) release:6.4 codename:final
This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1640435
CentOS View kernel version, system version, number of system bits