5 common view commands for Linux system architecture types _linux

Source: Internet
Author: User
Tags linux mint

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.

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.