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

What is the method of viewing different versions of Linux kernel

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

Share

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

What is the method of viewing different versions of the Linux kernel? many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

The Linux kernel is a very powerful and important part of Linux. Sometimes we encounter a lot of situations that make us look at our own kernel. No matter why we use the command line, we can easily find our own kernel information.

1. View the kernel version command:

1) [root@q1test01 ~] # cat / proc/version

Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) # 1 SMP Mon Sep 19 18:00:54 EDT 2005

2) [root@q1test01 ~] # uname-a

Linux q1test01 2.6.9-22.ELsmp # 1 SMP Mon Sep 19 18:00:54 EDT 2005 x86 "64 GNU/Linux

3) [root@q1test01 ~] # uname-r

2.6.9-22.ELsmp

two。 There are three main ways to view the version of linux:

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

Different solutions are detailed for different distributions, and these are the most common and efficient ones.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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

Development

Wechat

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

12
Report