[root@centos6 network-scripts]# 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: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6
Release: 6
Codename: n/a
[root@centos6 network-scripts]###适用于redhat[root@centos6 network-scripts]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6
[root@centos6 network-scripts]#
2、查看内核版本
[root@centos6 network-scripts]# cat /proc/version
Linux version 2.6.32-642.el6.x86_64 (mockbuild@worker1.bsys.centos.org)(gcc version 4.4.7 20120313 (Red Hat 4.4.7-17)(GCC))#1 SMP Tue May 10 17:27:01 UTC 2016[root@centos6 network-scripts]# [root@centos6 network-scripts]# [root@centos6 network-scripts]# uname -a
Linux centos6.8 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux[root@centos6 network-scripts]#
3、查看系统位数
[root@centos6 ~]# getconf LONG_BIT
64
[root@centos6 ~]# uname -r
2.6.32-642.el6.x86_64
[root@centos6 ~]#
[root@centos6 ~]# cat /proc/version
Linux version 2.6.32-642.el6.x86_64 (mockbuild@worker1.bsys.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Tue May 10 17:27:01 UTC 2016
[root@centos6 ~]#