Home>Article>Operation and Maintenance> How to check the number of the system in Linux

How to check the number of the system in Linux

青灯夜游
青灯夜游 Original
2021-11-29 10:30:51 4748browse

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.

How to check the number of the system in Linux

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn