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 commands are available in the Linux system to query the hairstyle version number and kernel version?

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

Share

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

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!

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