In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you what are the commands for Linux system to view digits, which are easy to understand and clear, hoping to help you solve your doubts. Let's take you to study and learn this article "what are the commands for Linux system to view digits?"
1. [root @ linuxzgf ~] # getconf LONG_ bit [root @ linuxzgf ~] # getconf WORD_BIT (the int type and long type are generally 4 bytes in 32-bit systems, and the int type is still 4 bytes in 64-bit systems, but long has become the number of digits of word and long available in 8-byte inux systems using "getconf WORD_BIT" and "getconf LONG_BIT". You should get 32 and 64 in a 64-bit system, respectively. )
2. [root @ linuxzgf ~] # uname-an if there is x86room64, it is 64-bit, and the kernel is 64-bit if it is followed by X686 or X86room64, and the kernel is 32-bit if i686 or i386
Third, directly see if there is a method of / lib64 directory. 64-bit systems will have / lib64 and / lib directories, and 32-bit systems will have only / lib.
4. [root @ linuxzgf ~] # file / sbin/init/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped32-bit is 32-bit linux. If it is 64-bit, it shows 64-bit.
5. [root @ linuxzgf ~] # file / bin/cat/bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped32-bit is 32-bit linux. If it is 64-bit, it shows 64-bit.
6. [root @ linuxzgf ~] # uname-mx86_643.# archx86_64i686
7. Check how many bits of cpu are [root @ linuxzgf ~] # more / proc/cpuinfo
8. [root @ linuxzgf ~] # echo $HOSTTYPEx86_64
The getconf command can also get the basic configuration information of the system, such as operating system bits, memory size, disk size, and so on. $getconf-a can see detailed system information
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is about "what are the commands for checking digits in the Linux system". If this article is helpful to you and think it is well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more 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.