Home  >  Article  >  Operation and Maintenance  >  Check how many bits the linux operating system has

Check how many bits the linux operating system has

(*-*)浩
(*-*)浩Original
2019-12-05 09:42:073460browse

Check how many bits the linux operating system has

1. Execute the 'uname -a' command (Recommended learning: linux tutorial)

Check how many bits the linux operating system has

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

2. Run the 'uname -m' command

Check how many bits the linux operating system has

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

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, the operating system is 32-bit

Check how many bits the linux operating system has

4. Use the arch command

This command is used to output the hardware name of the machine, for 64-bit operations System, the output should be x86_64

Check how many bits the linux operating system has

The above is the detailed content of Check how many bits the linux operating 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