Whether you're using a desktop version or a Linux environment with just a text interface, the following commands take almost all of the Linux distributions, such asRHEL, CentOS, Fedora, Scientific Linux, Debian, Ubuntu, Linux Mint, OpenSUSE and so on.
1. uname command
uname-a commands can directly display the Linux system architecture commands, Ann can work almost in all Linux/unix systems.
2. dpkg command
The dpkg command can be used to see if the Debian/ubuntu operating system is 32-bit or 64-bit, and this command applies only to Linux distributions based on Debian and Ubuntu.
Execute the following command in the terminal:
Dpkg--print-architecture
If the current Linux is 64 bits output AMD64, 32 bits will output i386.
3. getconf command
The getconf command is primarily used to display system variable configurations, and we can use the following parameters to view the Linux system architecture:
Getconf Long_bit
4. Arch command
The Arch command is primarily used to display the operating system schema type, very similar to the UNAME-M command. If the output x86_64 is represented as a 64-bit system, if the output i686 or i386 is represented as a 32-bit system.
5. File command
The file command can be used to view the system architecture type (/sbin/init is linked to/LIB/SYSTEMD/SYSTEMD in Ubuntu 15.10) with the/sbin/init special parameter:
File/sbin/init
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.