Check whether the linux server is 32-bit or 64-bit

Source: Internet
Author: User
Check whether the linux machine is 32-bit or 64-bit: file/sbin/init or file/bin/ls/sbin/init: ELF64-bitLSBexecutable, x86-64, version1 (SYSV ), dynamicallylinked (usessharedlibs), forGNU/Linux2.6.18, stripped

Check whether the linux machine is 32-bit or 64-bit:

File/sbin/init or file/bin/ls
/Sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

64-bit is displayed;

File/sbin/init
/Sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped


32 bit if displayed;

Uname-:
Uname-
Linux pmx002 **. **. ** 2.6.32-71. el6.x86 _ 64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

X86_64 indicates a 64-bit machine

Uname-
Linux pmx0 **. **. ** 2.6.9-5. ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux

 


I686 indicates a 32-bit machine

I686 is only a subset of i386, and the supported cpu starts from Pentium 2 (686), which is not supported by the previous model.

Note:

1. i386 is applicable to all 32-bit intel and AMD CPUs and 32-bit cpu via X86 architecture.

Intel platforms include 8086,80286, 80386,80133, Pentium series (1.2.3.4), Sai Yang series, and Pentium D series

As well as centrino P-M, core duo and so on.

2. X86_64 is applicable to intel's 64-bit cpu with X86 architecture, including Core 2 Duo, Centrino Core 2 Duo, and Xeon and AMD Athlon64/x2, Sempron64/x2, and Duron64.

3. PPC applies to Apple Macintosh G3, G4, G5, PowerBook, and other non-Intel models

The installation of a DVD includes more software than the installation of a CD, and the installation of a DVD also includes two graphical interfaces (KDE and gnome ).

4. Jigdo

You can also download the Ora release through Jigdo. Jigdo can accelerate the download of the ISO image of the installation disk. Unlike the BT download wait task, Jidgo automatically locates the fastest backup storage (using the Fedora image manager) and downloads the required files from it. To reduce the required network traffic, Jigdo can scan existing DVD or CD media. This feature is particularly useful to the following users.

 

Getconf LONG_BIT
Run the following command on 32-bit and 64-bit machines:
[B @ 002 ~] $ Getconf LONG_BIT
64

[Root @ pmx4/] # getconf LONG_BIT
32

Related Article

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.