View 5 common commands for Linux system architecture types

Source: Internet
Author: User
Tags linux mint

Guide Many times we need to see whether the current Linux system is a 32-bit or 64-bit system architecture type, and I will recommend 5 common commands in this article. Whether you're using a desktop version or a Linux environment with a text-only interface, the following commands can be used for almost all Linux distributions, such as RHEL, CentOS, Fedora, Scientific Linux, Debian, Ubuntu, Linux Mint , OpenSUSE, and so on.

1. uname command

The UNAME-A command can directly display the Linux system architecture commands, and Ann can work on almost all Linux/unix systems.

2. dpkg command

The dpkg command can be used to see whether the Debian/ubuntu operating system is 32-bit or 64-bit, and this command is only available for Debian and Ubuntu-based Linux distributions.

Execute the following command in the terminal:

Dpkg--print-architecture

If the current Linux is 64 bits then output AMD64, 32 bits will output i386.

3. getconf command

The getconf command is primarily used to display system variable configurations, and we can also 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 architecture type, very similar to the UNAME-M command. If the output x86_64 is represented as a 64-bit system, the output i686 or i386 is represented as a 32-bit system.

5. File Command

The file command can be used with/sbin/init to see the system architecture type (/sbin/init is linked to/LIB/SYSTEMD/SYSTEMD in Ubuntu 15.10):

File/sbin/init

View 5 common commands for Linux system architecture types

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.