In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to detect whether Linux is 32-bit or 64-bit". In daily operation, I believe many people have doubts about how to detect whether Linux is 32-bit or 64-bit. Xiaobian consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to detect Linux is 32-bit or 64-bit". Next, please follow the editor to study!
Sometimes novice Linux users are confused when downloading software, because the download page often provides both 32-bit and 64-bit versions of the software. So it's important to know whether your operating system is 32-bit or 64-bit, because you need this information when you do a lot of things. In this article, we will discuss five ways to check whether your Linux system is 32-bit or 64-bit.
Check whether your Linux is 32-bit or 64-bit
Please note that these methods are tested on the Ubuntu 13.10 platform.
1. Execute the 'uname-a' command
One of the most common testing methods is to run the uname command command.
For example, in my system, it displays the following information:
$uname-a Linux ubuntu 3.11.0-12-generic # 19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013 i686 athlon i686 GNU/Linux
The highlighted i686 (or is sometimes i386) indicates that the operating system is 32-bit, but if x86'64 is displayed, it means that the operating system is 64-bit.
two。 Run the 'uname-m' command
The above command has so much meaning that you can use this parameter to point to the human heart: 'uname-m'.
For example, in my system, it displays the following information:
$uname-mi 686
This shows that my Ubuntu Linux system is 32-bit, and if the output shows x86'64, it means the system is 64-bit.
3. Use the file command
Although this is purely a show of skill, it is still a way to achieve an end. To use this method, you need to run the file command with / sbin/init as an argument.
For example:
$file / sbin/init / sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID [sha1] = 0xc0d86a25a7abb14cad4a65a1f7d03605bcbd41f6, stripped
The highlighted 32-bit indicates that this is a 32-bit operating system, and if it is displayed as 64-bit, the operating system is 64-bit
4. Use the arch command
Another alternative is to use the arch command, which is used to output the hardware name of the machine.
Here is an example:
$arch i686
Here you can see that the output is i686, which means that this is a 32-bit operating system. For a 64-bit operating system, the output should be x86. 64.
5. Through the system setup method
If you are using Ubuntu 12.04 or higher, you can simply view your system structure in * * All Settings-> Details**.
So you can see that the system type (32-bit) is clearly displayed here.
At this point, the study on "how to detect whether the Linux is 32-bit or 64-bit" is over. I hope to be able to 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.