胖狐狸
一个站长的学习笔记

查看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)

赞(0)
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址