In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what are the methods for Linux to view the memory version". In the daily operation, I believe that many people have doubts about the method of viewing the memory version of Linux. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "what is the method of Linux viewing the memory version?" Next, please follow the editor to study!
Use the uname command to view the Linux kernel version
The uname command displays multiple system information, including the Linux kernel architecture, name version, and release.
To find out which version of the Linux kernel is running on the system, enter the following command:
Uname-srm
Output result:
Linux 3.10.0-957.12.2.el7.x86_64 x86 revision 643-kernel version. 10-major revision. 0-957-minor revision. 12-patch version. Use the hostnamectl command to view the kernel version
The hostnamectl utility is part of systemd and is used to query and change the system hostname. It also displays Linux distributions and kernel versions:
HostnamectlStatic hostname: CentOS7.linuxrumen.comIcon name: computer-vmChassis: vmMachine ID: 20c27040135a4d46b2d3d07180f37303Boot ID: 2f495af0684e4adfb34f0366f2567460Virtualization: vmwareOperating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7Kernel: Linux 3.10.0-957.12.2.el7.x86_64Architecture: x86-64
Use the following command to display only the current kernel version:
Hostnamectl | grep-I kernel
Confirm the kernel version by viewing the / proc/version file
The / proc directory contains virtual files that contain information about system memory, CPU kernel, mounted file systems, and so on. Information about the running kernel is stored in the / proc/version virtual file. View the contents of the file with cat:
Cat / proc/version
The output is as follows:
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, this is the end of the study on "what are the ways for Linux to check the memory version". I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.