Viewing method: 1. Execute the "file /sbin/init" command in the terminal to view; 2. Execute the "uname -a" command in the terminal to view; 3. Execute the "getconf WORD_BIT" command in the terminal Check.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
Check the operating system number of linux
Method 1:
Terminal input:
file /sbin/init
If displayed:
/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, stripped
is 32-bit Linux; if it is 64-bit, 64-bit is displayed.
Method 2:
Terminal input:
uname -a
If displayed:
Linux redhat-tj 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux
is 32-bit
Method 3:
Terminal input:
getconf WORD_BIT
If displayed:
32
is 32-bit linux
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to check the number of the system in Linux. For more information, please follow other related articles on the PHP Chinese website!