In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to view the version information of Linux, in view of this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
Brief introduction
There are many distributions of Linux, which can generally be judged by the kernel. However, if you need detailed distribution information, you can view it with the help of the command. Lsb_release
Displays LSB (Linux Standard Base) compatible release information. If it is a LSB-compatible distribution, you can view the specific version information at / etc/lsb-release.
Lsb_release can quickly filter this information to find the fields you need, this command may not come with it, you can install your own lsb-release package.
Lsb_release-h
FSG lsb_release v1.4 prints certain LSB (Linux Standard Base) and
Distribution information.
Usage: lsb_release [OPTION]...
With no OPTION specified it is the same as-v.
Options:
-v,-- version
Display the version of the LSB specification against which the distribution is compliant.
-I-- id
Display the string id of the distributor.
-d,-- description
Display the single line text description of the distribution.
-r,-- release
Display the release number of the distribution.
-c,-- codename
Display the codename according to the distribution release.
-a,-- all
Display all of the above information.
-s-- short
Display all of the above information in short output format.
-h,-- help
Display this message.
Lsb_release-a
LSB Version: ManjaroLinux Description a Distributor ID: ManjaroLinux Description: ManjaroLinux Release: 21.0.2 Codename: OrnaraVersion file
The lsb_release command requires a separate installation, and if not, you can find the version information through other version information files.
RHEL series: / etc/redhat-release, / etc/os-release, / etc/system-release, etc. These files generally point to the same file. If it is a reissued version, such as centos, there will be / etc/centos-release.
Debian series: / etc/debian-version, / etc/issue, etc., and the reissued version will also have a corresponding version file.
Kernel version
The command uname is generally used to check the kernel version.
Uname-a Linux manjaro 5.11.14-1-MANJARO # 1 SMP PREEMPT Wed Apr 14 08:25:29 UTC 2021 x 86 million 64 GNU/Linux
You can also quickly filter to the fields you need with this command.
You can also check / proc/version directly to see the current kernel version in the cloud.
Cat / proc/version Linux version 5.11.14-1-MANJARO (builduser@LEGION) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) # 1 SMP PREEMPT Wed Apr 14 08:25:29 UTC 2021 questions on how to view Linux version information are shared here. I hope the above content can be of some help to you, if you still have a lot of questions unanswered. You can follow the industry information channel for more related knowledge.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.