Linux system command to view system version


Following on centos system implementation, some way may apply only centos / redhat version of the system

uname -a | uname -r core edition Information


[the root @ node1 ~] -a # the uname
the Linux node1 2.6.32-573.el6.x86_64 # Thu Jul-23 is the SMP. 1, 2015 15:44:03 UTC the x86_64 the x86_64 the x86_64 the GNU / the Linux
[the root @ node1 ~] # the uname -R & lt
2.6.32-573.el6.x86_64
2. CAT / proc / version core edition version of linux gcc

[root@node1 ~]# cat /proc/version
Linux version 2.6.32-573.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Thu Jul 23 15:44:03 UTC 2015

3. lsb_release -a lists all versions information, view system information release, centos version If you do not execute this command yum install lsb install Linux
[root @ node1 ~] # lsb_release -a
LSB Version:: 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-noarch
Distributor ID: the CentOS
the Description: the CentOS Release 6.7 (Final)
Release: 6.7
Codename: Final

4. cat / etc / issue Display system version Linux
[the root @ node1 ~] # CAT / etc / Issue
the CentOS Release 6.7 (Final)
Kernel \ R & lt ON AN \ m

5. centos system performs cat / etc / redhat-release system version See linux
[the root @ node1 ~] # cat / etc / redhat-release
the CentOS Release 6.7 (Final)
6. The execution getconf LONG_BIT linux system can check digit linux
[ root @ node1 ~] # getconf LONG_BIT

Guess you like

Origin www.cnblogs.com/qianjinyan/p/11389756.html