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

The method for linux to view the current version information

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

Share

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

Today, I will talk to you about linux's way to view the current version of information. I believe most people don't know this skill yet, so I give you a summary of the following. I hope you can get something after reading it.

1. # uname-a (Linux views the current operating system kernel information of the version)

[hadoop@admin01 ~] $uname-aLinux admin01 2.6.32-358.el6.x86_64 # 1 SMP Fri Feb 22 00:31:26 UTC 2013 x86 "64 GNU/Linux

2. # cat / proc/version (Linux to view current operating system version information)

[hadoop@admin01 ~] $cat / proc/version Linux version 2.6.32-358.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)) # 1 SMP Fri Feb 22 00:31:26 UTC 2013

3. # cat / etc/issue or cat / etc/redhat-release (Linux views the current operating system release information of the version)

[hadoop@admin01 ~] $cat / etc/issueCentOS release 6.4 (Final) Kernel\ r on an\ m [hadoop@admin01 ~] $cat / etc/redhat-releaseCentOS release 6.4 (Final)

# lsb_release-a (query system version)

[root@Rocky opt] # lsb_release-aLSB Version:: core-4.1-amd64:core-4.1-noarchDistributor ID: CentOSDescription: CentOS Linux release 7.4.1708 (Core) Release: 7.4.1708Codename: Cor

Note: the query version information for this is done on another machine. If you need to use this command on the local machine to query, you first need to install this command on yum.

In order to show it vividly, I personally used the command yum install-y redhat-lsb to install it on the cluster. Because there are more packages downloaded, it will take a little longer.

After reading the above, have you mastered the method of linux to view the current version information? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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