查看Linux版本的方法

1)命令: lsb_release -aspa

[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-releasecode

[root@localhost tmp]# cat /etc/redhat-release
CentOS release 6.3 (Final)
相關文章
相關標籤/搜索