查看CentOS版本方法

[不指定 2010/09/26 14:48 | by Totti ]
有以下命令可以查看:

# lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final


这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。


[root@us ~]# uname
Linux
[root@us ~]# uname -a
Linux 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


以下二种方法适用于RedHat,CentOS


[root@us ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]