Home  >  Article  >  Operation and Maintenance  >  What is the command to query linux version information?

What is the command to query linux version information?

WBOY
WBOYOriginal
2021-12-24 15:00:0232621browse

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.

What is the command to query linux version information?

#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:

What is the command to query linux 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.

What is the command to query linux version information?

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!

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