Command: 1. "lsb_release -a", this command can view all linux system versions; 2. "cat /etc/redhat-release", this command is only suitable for Redhat series linux; 3. "cat /etc/issue", this command also applies to all versions.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the command to query linux version information
1. lsb_release -a will list all version information:
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.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is the command to query linux version information?. For more information, please follow other related articles on the PHP Chinese website!