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

How to check the version of Linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article is about how to view the version of Linux system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. View the kernel version command:

1)

[root@localhost ~] # cat / proc/version

Linux version 2.6.32-504.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)) # 1 SMP Wed Oct 15 04:27:16 UTC 2014

2)

[root@localhost] # uname-a

Linux localhost.localdomain 2.6.32-504.el6.x86_64 # 1 SMP Wed Oct 15 04:27:16 UTC 2014 x86 "64 GNU/Linux

3)

[root@localhost ~] # uname-r

2.6.32-504.el6.x86_64

two。 View the linux version:

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

[root@localhost ~] # lsb_release

LSB Version:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch

[root@tianfeiyu] # lsb_release-a

LSB Version:: base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch

Distributor ID: CentOS

Description: CentOS release 6.7 (Final)

Release: 6.7

Codename: Final

Note: this command applies to all linux, including CentOS, Redhat, SuSE, Debian and other distributions.

2) Log in to linux and execute cat / etc/issue, for example:

[root@tianfeiyu ~] # cat / etc/issue

CentOS release 6.7 (Final)

Kernel\ r on an\ m

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

[root@tianfeiyu ~] # cat / etc/redhat-release

CentOS release 6.7 (Final)

Note: in this way, you can see the specific version number directly, such as 6.5 (Final).

4) Log in to linux and execute rpm-Q centos-release, for example:

[root@tianfeiyu] # rpm-Q centos-release

Centos-release-6-7.el6.centos.12.3.x86_64

Thank you for reading! This is the end of the article on "how to view the version of the Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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