In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the information about the decrypted Linux version of linux. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Use uname
Whenever the command uname-an is executed in the Linux system terminal window, a lot of information is displayed. That's because this little a tells the uname command that you want to see all the output that the command can provide. The results will tell you a lot about the system. In fact, every piece of information displayed will tell you something different about the system.
For example, the uname-an output looks like this:
$uname-aLinux dragonfly 5.4.0-37-generic # 41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86 "64 GNU/Linux
Although this may not be important, you can use one to include all the options of uname in the appropriate order to display the same information:
$uname-snmrvpioLinux dragonfly 5.4.0-37-generic # 41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020 x86 "64 GNU/Linux
To decompose this long list of information into separate blocks, you can use a for loop like this to iterate through each option:
$for option in s n m r v p io; do echo-n "$option:"; uname-$option; dones: Linuxn: dragonflym: x86room64r: 5.4.0-37-genericv: # 41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020p: x86room64i: x86room64o: GNU/Linux
The loop shows what information this option provides. The uname man page provides a description of each option. The following is a list:
Linux-Kernel name (option s)
Dragonfly-Node name (option n)
X86room64-Machine hardware name (option m)
5.4.0-37-generic-Kernel release (option r)
# 41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020-Kernel version (option v)
X86room64-processor (option p)
X86room64-hardware platform (option I)
GNU/Linux-operating system (option o)
To delve deeper into the information displayed, take a closer look at the displayed kernel release data. 5.4.0-37 in the fourth line is not just a string of arbitrary numbers. Every number is important.
5 indicates the kernel version
4 represents the major version
0 means minor version
37 indicates the latest patch
In addition, the # 41 in line 5 (kernel version) output in the above loop indicates that this release has been compiled 41 times.
If you want to display only one of all the information, then a single option may be useful. For example, the command uname-n can only tell you the system name, while uname-r can only tell you the kernel release. These and other options can be useful when taking inventory of servers or building scripts.
On Red Hat systems, the uname-a command provides the same kind of information. This is an example:
$uname-aLinux fruitfly 4.18.0-107.el8.x86_64 # 1 SMP Fri Jun 14 13:46:34 UTC 2019 x86'64 GNU/Linux release information
If you need to know what the distribution is running, then the output of uname won't help you much. After all, the kernel version is different from the release version. For this information, you can use the lsb_release-r command on Ubuntu and other Debian-based systems, while you can display the contents of the / etc/redhat-release file on Red Hat.
For Debian systems:
$lsb_release-rRelease: 20.04
For Red Hat and related systems:
$cat / etc/redhat-releaseRed Hat Enterprise Linux release 8.1 Beta (Ootpa) uses / proc/version
The / proc/version file can also provide information about the Linux version. The information provided in this file has a lot in common with the uname-an output. Here are some examples.
On Ubuntu:
$cat / proc/versionLinux version 5.4.0-37-generic (buildd@lcy01-amd64-001) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) # 41-Ubuntu SMP Wed Jun 3 18:57:02 UTC 2020
On RedHat:
$cat / proc/versionLinux version 4.18.0-107.el8.x86_64 (mockbuild@x86-vm-09.build.eng.bos.redhat.com) (gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) # 1 SMP Fri Jun 14 13:46:34 UTC 2019 this article on "linux decryption Linux version Information" ends here. 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, please 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.
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.