In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.