Linux操作系统查看系统信息命令( 二 )


[root@Centos2 ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)
[root@Centos2 ~]# cat /etc/*release
CentOS release 6.4 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
[root@Centos2 ~]# ls /etc/*release
/etc/centos-release /etc/lsb-release /etc/redhat-release /etc/system-release
[root@Centos2 ~]#
3.3 RedHat Linux
复制代码代码如下:
[root@getlnx05 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@getlnx05 ~]# cat /etc/*release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@getlnx05 ~]# ls /etc/*release
/etc/redhat-release
[root@getlnx05 ~]#
4 rpm -q redhat-release命令查看,只适用于Redhat Linux
复制代码代码如下:
[root@getlnx05 ~]# rpm -q redhat-release
【Linux操作系统查看系统信息命令】redhat-release-5Server-5.7.0.3