全球主机交流论坛

标题: 查看CentOS版本的方法 [打印本页]

作者: yoyo    时间: 2014-9-16 18:18
标题: 查看CentOS版本的方法
很多时候,我们可以通过uname -a命令来查看linux的版本,但是很多时候我们却没法准确的查看到CentOS的版本号,下面介绍几个命令。
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.4 (Final)
Release:        5.4
Codename:       Final
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。
root@MyMail ~ # cat  /etc/redhat-release
CentOS release 5.4 (Final)

来源:yoyo blog







欢迎光临 全球主机交流论坛 (http://bbs.cuwww.com/) Powered by Discuz! X3.2