Commands to view the Linux system version (3 methods):
1, lsb_release -a, you can list all Version information: (Recommended learning: linux operation and maintenance)
This command applies to all Linux distributions, including RedHat, SUSE, Debian... and other distributions.
2. cat /etc/redhat-release, this method is only suitable for Redhat-based Linux:
[root@S-CentOS home]# cat /etc/redhat-release CentOS release 6.5 (Final)
3. cat /etc/issue, this command also applies to all Linux distributions.
The above is the detailed content of How to check the system version in linux. For more information, please follow other related articles on the PHP Chinese website!