Method 1:
getconf LONG_BIT
32 is a 32-bit system, 64 is a 64-bit system
Method 2: Use file /sbin/init
or file /bin/ls
command
Free video tutorial recommendation: linux video tutorial
32-bit is a 32-bit system, 64-bit is a 64-bit system
Method 3:
uname -a
i686 Indicates a 32-bit system, x86_64 indicates a 64-bit system
Note: The screenshot is a 32-bit system of centos6.4
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of How to check whether Linux is 32-bit or 64-bit. For more information, please follow other related articles on the PHP Chinese website!