Get the App
SLTechnology News&Howtos  ›  Servers  › 

What commands are available in the Linux system to query the hairstyle version number and kernel version?

Shulou Source: shulou.com Published: 2022-06-01 08:46:50 09月19日 Update

This article introduces the knowledge of "what are the commands for querying the hairstyle version number and kernel version in the Linux system?" in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

It is very important to know the version number of the Linux distribution. Most software requires the version of the system. If the release number does not match the software, the software will not be able to install or use. Here collect the popular Linux distribution version number query method on the market. With this article, the boss is no longer worried that I installed the wrong software.

I. query the release number

1.Debian version query:

The code is as follows:

# cat / etc/debian_version

5.0.7

# cat / etc/issue

Debian GNU/Linux 5.0\ n\ l

2.Ubuntu version query:

Note: all kinds of data recorded in the proc directory and the version information recorded by version can be seen directly through cat.

First kind

Use the command:

The code is as follows:

Cat / proc/version

View

The proc directory records all kinds of data that the current system is running, and the version information recorded by version can be viewed directly through cat, as well as my gcc version.

The second kind

Use the command:

The code is as follows:

Uname-a

View

As shown in the above figure, your own kernel version

The third kind

Use the command:

The code is as follows:

Lsb_release-a

View

3.CentOS version query:

The code is as follows:

# cat / etc/*-release

CentOS release 6.4 (Final)

CentOS release 6.4 (Final)

CentOS release 6.4 (Final)

4.RedHat version query:

The code is as follows:

# cat / etc/redhat-release

Red Hat Enterprise Linux Server release 6. 0 (Santiago)

5.Fedora version query:

The code is as follows:

$cat / etc/fedora-release

Fedora release 14 (Laughlin)

6.OpenSuSE version query:

The code is as follows:

$cat / etc/SuSE-release

OpenSUSE 12.1 (x86x64)

VERSION = 12.1

CODENAME = Asparagus

Second, query the kernel version

The code is as follows:

# uname-r

2.6.32-358.14.1.el6.x86_64

# cat / proc/version

Linux version 2.6.32-358.14.1.el6.x86_64 (mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)) # 1 SMP Tue Jul 16 23:51:20 UTC 2013

This is the end of the "commands for querying the hairstyle version number and kernel version in the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Version query code command system kernel software release hairstyle information content data article more directory knowledge run practical important learned Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft Huawei Redmi vpn