Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Where can I check the linux version?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "where to check the linux version". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "where to check the linux version"!

1) Log in to the server and execute lsb_release-a to list all version information, for example:

[root@3.5.5Biz-46] # lsb_release-a

LSB Version: 1.3

Distributor ID: RedHatEnterpriseAS

Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

Release: 4

Codename: NahantUpdate1

[root@3.5.5Biz-46 ~] #

This command applies to all linux, including Redhat, SuSE, Debian, and other distributions.

2) Log in to linux and execute cat / etc/redhat-release, for example:

[root@3.5.5Biz-46 ~] # cat / etc/redhat-release

Red Hat Enterprise Linux AS release 4 (Nahant Update 1)

[root@3.5.5Biz-46 ~] #

In this way, you can see the specific version number directly, such as AS4 Update 1

3) Log in to linux and execute rpm-Q redhat-release, for example

[root@3.5.5Biz-46] # rpm-Q redhat-release

Redhat-release-4AS-2.4

[root@3.5.5Biz-46 ~] #

You can see a so-called release number in this way. For example, the example above is 2.4.

There is a corresponding relationship between the release number and the actual version, as follows:

Redhat-release-3AS-1-> Redhat Enterprise Linux AS 3

Redhat-release-3AS-7.4-> Redhat Enterprise Linux AS 3 Update 4

Redhat-release-4AS-2-> Redhat Enterprise Linux AS 4

Redhat-release-4AS-2.4-> Redhat Enterprise Linux AS 4 Update 1

Redhat-release-4AS-3-> Redhat Enterprise Linux AS 4 Update 2

Redhat-release-4AS-4.1-> Redhat Enterprise Linux AS 4 Update 3

Redhat-release-4AS-5.5-> Redhat Enterprise Linux AS 4 Update 4

Note: (2) (3) the two methods are only valid for Redhat Linux

At this point, I believe you have a deeper understanding of "where to view the linux version". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report