Most users now use Windows systems. They all know that Windows systems are divided into 32-bit and 64-bit. In fact, Linux systems also have 32-bit and 64-bit points. Do you know how many Linux systems are you? The following small series teaches you how to use the shell to see if Linux is 32-bit or 64-bit.
Manual to view the system-digit
View digit linux system, you can do each of the following two commands
getconf WORD_BIT
to get The number of bits in word
getconf LONG_BIT
The number of bits used to get long
For 64-bit systems, the two commands should get 32 and 64 respectively.
There are many ways to determine whether the Linux system is 32-bit or 64-bit. It is recommended to use getconf. However, some people think that getconf WORD_BIT=32 is 32bit, getconf WORD_BIT=64 is 64bit, please go to 64bit machine to execute, huh, huh . Getconf WORD_BIT shows the result is still 32, why?
In the 32-bit system, the int type and the long type are generally 4 bytes. In the 64-bit system, the int type is still 4 bytes, but the long has become an 8-byte inux system. Br>
Use ”getconf WORD_BIT” and ”getconf LONG_BIT” to get the number of digits in word and long
shell to determine the number of system bits
ldconfig
if [ $(getconf WORD_BIT) = ‘32’ ] && [ $(getconf LONG_BIT) = ‘64’ ] ; then
ln -s /usr/local/mysql/lib/mysql /usr /lib64/mysql
else
ln -s /usr/local/mysql/lib/mysql /usr/lib/mysql
fi
Some other methods
uname -a
32 bits: Linux localhost.localdomain 2.6.32-431.17.1.el6.i686 #1 SMP Wed May 7 20:52:21 UTC 2014 i686 I686 i386 GNU/Linux
64-bit: Linux demolinux 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Above is Linux using the shell to view Lin The ux32-bit and 64-bit methods are described. In addition to using the shell view, you can manually execute commands to view the number of system bits.
NixNote (Nevernotes client) is an Evernote for Linux client that is primarily used
LVM is a logical volume management, is a mechanism for disk partition management under Linux, I beli
The shell command is a kind of Linux command, but it is independent of other commands of the Linux s
There are a lot of Linux users who use the Firefox browser, and the silent request
Linux system how to install and configure ClusterShell tool
RedHat download and install JDK method
How to use the Linux system Docker command
Linux how to use the setfacl command to create a permission file
Ubuntu install and switch Nvidia dual graphics driver method
Linux installation of MariaDB database through Yum
How to use valgrind to check memory in Linux system
Linux svn error Cant convert string from how to do?
Ubuntu download and install j2ee development environment steps
What is the meaning and authority of the Linux system chmod command?
Hacking offense and defense: the most insidious seven black skills (2)
What if you are a newbie and you can't disable the Universal Volume?
The fastest way to remove system garbage is
Solution for 80200056 error when installing Win10 system
WinBox virtualBox path problem and VDI to VHD
Windows 7 opens a new chapter in the operating system
Host machine, virtual machine linux, development board linux network settings (can ping each other)
Win8 uses the Rubik's landscaping master to create IE icon
How to manually set the fixed IP
GHOST system disk reloading xp system prompt code 5555h error reason and solution