In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the uname command, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The uname command is used to print information about the current system (kernel version number, hardware architecture, host name, operating system type, and so on).
# unameLinux1. Kernel name
You can use the-s parameter to display the kernel name. (note: you can run this command on other Unix-like systems, for example, mac will display Darwin)
# uname-sLinux
The output information will be the same as when uname has no parameters.
two。 Kernel distribution
If you want to know which kernel distribution you are using (a different kernel package), you can use the-r parameter
# uname-r 2.6.18-371.1.2.el53. Kernel version
In addition to some kernel information, you can also get more detailed kernel version information with the-v parameter uname.
# uname-vault 1 SMP Tue Oct 22 12:57:43 EDT 20134. Node name
The parameter-n will provide you with the hostname of the node. For example, if your hostname is "dev-machine", the-n parameter prints the hostname.
# uname-ndev-machine
For RedHat and CentOS users, you can also view it through the / etc/redhat_release file:
# cat / etc/redhat_releaseCentOS release 5.10 (Final)
If it is not a RedHat-based distribution, you can check the / etc/issue file. Similar to the following:
# cat / etc/issueLinux Mint Olivia\ n\ lvl 5. Hardware name
If you want to know what kind of machine you are using, you can try the-m parameter. It will tell you about the hardware.
# uname-mi686
I686 indicates that you are using a 32-bit operating system, and if it is X86x64, it means you are using a 64-bit system.
6. Hardware platform
Similar to the hardware name, the-I parameter shows your hardware platform (hardware name i686 belongs to the hardware platform i386 series).
# uname-ii386
Similarly, i386 means that this is a 32-bit system running, and if the output is X86x64, then you are running a 64-bit system.
7. Processor Typ
You can use the-p parameter to see the processor type. If the uname is not recognized, it displays' unknown' as output.
# uname-pi6868. Operating system
Uname can also reveal the operating system you are running, and you can do this with the-o parameter.
# uname-oGNU/Linux9. All the information.
There is one parameter that displays all the information! This is the-a parameter, which displays all the information. If-I and-p are output to unknown, they are omitted by default.
# uname-aLinux dev-machine 2.6.18-371.1.2.el5 # 1 SMP Tue Oct 22 12:57:43 EDT 2013 i686 i686 i386 GNU/Linux Thank you for reading this article carefully. I hope the article "how to use uname commands" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.