Home>Article>Operation and Maintenance> How to check what version of linux is

How to check what version of linux is

WBOY
WBOY Original
2022-03-04 10:56:51 18196browse

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.

How to check what version of linux is

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to check what version of linux is

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.

How to check what version of linux is

Check the system version in the terminal.

How to check what version of linux is

1. Check the Linux kernel version command (two methods):

1. cat /proc/version

How to check what version of linux is

2. uname -a

How to check what version of linux is

2. Command to check the Linux system version (3 methods):

1. lsb_release -a , to list all version information:

How to check what version of linux is

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.

How to check what version of linux is

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn