How to check the number of the system in Linux

青灯夜游
Release: 2021-11-29 10:30:51
Original
4744 people have browsed it

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
Copy after login

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
Copy after login

is 32-bit Linux; if it is 64-bit, 64-bit is displayed.

Method 2:

Terminal input:

uname -a
Copy after login

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
Copy after login

is 32-bit

Method 3:

Terminal input:

getconf WORD_BIT
Copy after login

If displayed:

32
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!