查看Linux版本的方法

1)命令: lsb_release -a

[root@localhost tmp]# lsb_release -a
LSB Version:    :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: CentOS
Description:    CentOS release 6.3 (Final)
Release:        6.3
Codename:       Final

2)命令:cat /etc/redhat-release

[root@localhost tmp]# cat /etc/redhat-release
CentOS release 6.3 (Final)

 

posted @ 2014-06-08 21:43  luffy_zhong  阅读(234)  评论(0编辑  收藏  举报