Linux viewing system 32-bit or 64-bit

Source: Internet
Author: User

1. Viewing from the system

1.1 uname-a Command

[Email protected] ~]# uname-a

Linux qs-dmm-rh2 2.6.18-194.el5 #1 SMP Tue Mar 21:52:43 EDT all i686 i686 i386 gnu/linux

[Email protected] ~]# uname-a

Linux qs-xezf-db2 2.6.18-194.el5 #1 SMP Tue Mar 21:52:39 EDT all x86_64 x86_64 x86_64 gnu/linux

1.2 file/bin/ls command

[Email protected] ~]# File/bin/ls

/bin/ls:elf 32-bit LSB executable, Intel 80386, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared Li BS), for Gnu/linux 2.6.9, stripped

[Email protected] ~]# File/bin/ls

/bin/ls:elf 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for Gnu/linux 2.6.9, dynamically linked (uses shared Lib s), for Gnu/linux 2.6.9, stripped

1.3 getconf long_bit Command

[Email protected] ~]# getconf long_bit

32

[Email protected] ~]# getconf long_bit

64

1.4 Arch Command

[Email protected] ~]# Arch

i686

[Email protected] ~]# Arch

x86_64

Linux viewing system 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.