1. 安装时的版本信息
在/etc/issue和/etc/redhat-release文件中保存了系统安装时默认的发行版本信息,通常安装好这两个文件内容不会发生变化。
# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
2. 当前系统的版本信息
# 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.5 (Santiago)
Release: 6.5
Codename: Santiago
[root@localhost 桌面]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
如果报告:lsb_release command not found,可以用 yum install redhat-lsb -y 来安装。
如果发现lsb_release -a和/etc/issue显示的发行版本号不同,原因可能是内核升级了。
3. 当前系统的内核版本信息
# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013
在/etc/issue和/etc/redhat-release文件中保存了系统安装时默认的发行版本信息,通常安装好这两个文件内容不会发生变化。
# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)
2. 当前系统的版本信息
# 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.5 (Santiago)
Release: 6.5
Codename: Santiago
[root@localhost 桌面]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m
如果报告:lsb_release command not found,可以用 yum install redhat-lsb -y 来安装。
如果发现lsb_release -a和/etc/issue显示的发行版本号不同,原因可能是内核升级了。
3. 当前系统的内核版本信息
# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013
没有评论:
发表评论