How to see whether a Linux system is 32-bit or 64-bit

Source: Internet
Author: User

1. #uname-A

If there's a x86_64, it's 64, and there's no 32-bit.
# uname-a
Linux Desktop 2.6.35-23-generic #37-ubuntu SMP Fri Nov 5 19:17:11 UTC all i686 gnu/linux
This is 32-bit.
#uname-A
Linux backup 2.6.9-67.ELSMP #1 SMP Wed Nov 7 13:58:04 EST. i686 i686 i386 Gnu/linux
Note: The ixxx are all 32-bit, with x86-64 all 64-bit

2. #file/sbin/init

/sbin/init:elf 32-bit LSB Shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for gnu/li Nux 2.6.15, stripped

3. See how many bits the CPU is

More/proc/cpuinfo

4. $su-root

#file/sbin/init
/sbin/init:elf 32-bit LSB executable, Intel 80386, version 1 (SYSV),
That is, 32-bit Linux, 64-bit, which shows the 64-bit

How to see whether a Linux system is 32-bit or 64-bit

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.