Home > Article > Operation and Maintenance > How to check what version of linux is
How to check the Linux version: 1. Use the "lsb_release -a" command to check all version information; 2. Use the "cat /etc/issue" command to check the Linux release version information; 3. Use "cat / proc/version" command to view operating system version information.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
To check the system version in the linux system, you can use the cat version command to check
cat (English full spelling: concatenate) Command is used to concatenate files and print to the standard output device.
Syntax format
cat [-AbeEnstTuv] [--help] [--version] fileName
Enter the cat /proc/version command in the terminal and press Enter.
Check the system version in the terminal.
1. Check the Linux kernel version command (two methods):
1. cat /proc/version
2. uname -a
2. Command to check the Linux system version (3 methods):
1. lsb_release -a , to 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 How to check what version of linux is. For more information, please follow other related articles on the PHP Chinese website!