Home>Article>Operation and Maintenance> Check what commands can be used to check the Linux system version
1. lsb_release -a, you can list all version information
[root@S-CentOS ~]# lsb_release -a 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 Distributor ID: CentOS Description: CentOS release 6.5 (Final) Release: 6.5 Codename: Final
This command is applicable to all Linux distributions, including RedHat, SUSE, Debian...etc. Release.
2. cat /etc/redhat-release, this method is only suitable for Redhat Linux
[root@S-CentOS home]# cat /etc/redhat-release CentOS release 6.5 (Final)
3. cat /etc/issue, this command is also applicable to all Linux distributions
[root@S-CentOS home]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m
Recommended tutorial:linux tutorial
The above is the detailed content of Check what commands can be used to check the Linux system version. For more information, please follow other related articles on the PHP Chinese website!