Home  >  Article  >  Operation and Maintenance  >  How to check how many bits a linux system has

How to check how many bits a linux system has

王林
王林Original
2020-03-12 15:05:295394browse

How to check how many bits a linux system has

1. Execute the 'uname -a' command

How to check how many bits a linux system has

The highlighted i686 (or sometimes i386) description The operating system is 32-bit, but if it displays x86_64, it means that the operating system is 64-bit.

2. Run the 'uname -m' command

The output shows x86_64, which means the system is 64-bit

How to check how many bits a linux system has

Recommended Tutorial: linux tutorial

3. Use the file command

file /lib/systemd/systemd

to indicate that this is a 64-bit operating system. If it is displayed as 32-bit, it means that the operating system is 32 bit

How to check how many bits a linux system has

4. Use the arch command

This command is used to output the hardware name of the machine. For a 64-bit operating system, the output should be x86_64

How to check how many bits a linux system has

5. Through system setting method

How to check how many bits a linux system has

Recommended video tutorial: linux video tutorial

The above is the detailed content of How to check how many bits a linux system has. 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