In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to view Linux kernel version, I believe most people do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
The Linux kernel is just one part of the Linux operating system. On the bottom, it manages all hardware devices of the system; on the top, it provides interfaces to Library Routine (such as C library) or other applications through system calls.
The uname command displays multiple system information, including Linux kernel architecture, name version, and release.
To find out which Linux kernel version is running on your system, enter the following command:
uname -srm Output result:
Linux 3.10.0-957.12.2.el7.x86_64 x86_64 3 -Kernel version. 10 -Major revision. 0-957 -Minor Revision. 12 -Patch version. Use hostnamectl command to view kernel version The hostnamectl utility is part of systemd and is used to query and change system hostnames. It also displays Linux distributions and kernel versions:
hostnamectl Static hostname: CentOS7.linuxrumen.com Icon name: computer-vm Chassis: vm Machine ID: 20c27040135a4d46b2d3d07180f37303 Boot ID: 2f495af0684e4adfb34f0366f2567460 Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-957.12.2.el7.x86_64 Architecture: x86-64 Show only the current kernel version using the following command:
hostnamectl | grep -i kernel
Confirm the kernel version by looking at the/proc/version file
The/proc directory contains virtual files that contain information about system memory, CPU kernels, installed file systems, and more. Information about the running kernel is stored in the/proc/version virtual file. Combine cat to view file content:
cat /proc/version outputs the following:
Linux version 3.10.0-957.12.2.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) 1 SMP Tue May 14 21:24:32 UTC 2019 above is "How to view kernel versions in Linux" All the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.