How to view Linux versions how to see how many bits of Linux

Source: Internet
Author: User

First, how to know what version of Linux you are using, here are a few ways to bring you the answer!


  1. View the kernel version command:

1) [[email protected] ~]# cat/proc/version

Linux version 2.6.9-22.ELSMP ([email protected]) (GCC version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005

2) [[email protected] ~]# uname-a

Linux q1test01 2.6.9-22.elsmp #1 SMP Mon Sep 18:00:54 EDT 2005 x86_64 x86_64 x86_64 gnu/linux

3) [[email protected] ~]# uname-r

2.6.9-22.elsmp

   2. View the Linux version:

1) Log in to the server to perform lsb_release-a and list all version information, for example:

[Email protected] ~]# [[email protected] ~]# lsb_release-a

LSB Version:: core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-

Ia32:graphics-3.0-noarch

Distributor Id:redhatenterpriseas

description:red Hat Enterprise Linux as Release 4 (Nahant Update 2)

Release:4

Codename:nahantupdate2

Note: This command applies to all Linux, including Redhat, SuSE, Debian, and other distributions.

2) Log in to the Linux execution Cat/etc/issue, as follows:

[Email protected] ~]# cat/etc/issue

Red Hat Enterprise Linux as Release 4 (Nahant Update 2)

Kernel \ r on an \m

3) Log in to the Linux execution Cat/etc/redhat-release, as follows:

[Email protected] ~]# cat/etc/redhat-release

Red Hat Enterprise Linux as Release 4 (Nahant Update 2)

Note: The specific version number can be seen directly in this way, such as AS4 Update 1

4) Log in to the Linux execution Rpm-q redhat-release, for example as follows:

[Email protected] ~]# rpm-q redhat-release

Redhat-release-4as-3

Note: A so-called release number can be seen in this way, such as the above example is 3

There is a certain correspondence between the release number and the actual version, as follows:

Redhat-release-3as-1-Redhat Enterprise Linux as 3

redhat-release-3as-7.4-Redhat Enterprise Linux as 3 Update 4

Redhat-release-4as-2-Redhat Enterprise Linux as 4

redhat-release-4as-2.4-Redhat Enterprise Linux as 4 Update 1

Redhat-release-4as-3-Redhat Enterprise Linux as 4 Update 2

redhat-release-4as-4.1-Redhat Enterprise Linux as 4 Update 3

redhat-release-4as-5.5-Redhat Enterprise Linux as 4 Update 4

another: 3rd), 4) Two methods are only valid for Redhat Linux.


Second, how to see how many bits of Linux

1. Check whether the Linux machine is a 32-bit or 64-bit method:

file/sbin/init or file/bin/ls

/sbin/init:elf64-bitLSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for Gnu/linux 2.6.18, stripped

If the display 64-bit is 64 bits;

File/sbin/init
/sbin/init:elf32-bitLSB executable, Intel 80386, version 1 (SYSV), for Gnu/linux 2.2.5, dynamically linked ( Uses shared libs), stripped

32bit if it is displayed as a + bit;

uname-a:

Uname-a
Linux pmx002**.**.** 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT allx86_64x86_64 x86_64 gnu/linux

X86_64 represents 64-bit machines

Uname-a
Linux pmx0**.**.** 2.6.9-5.elsmp #1 SMP Wed Jan 5 19:30:39 EST 2005i686 i686 i386gnu/linux


i686 represents 32-bit machines

i686 is only a subset of the i386, supported CPUs starting from Pentium 2 (686), the previous model is not supported.

Note:

1. i386 applies to all 32-bit CPUs of Intel and AMD. and via 32 CPU with X86 architecture.

Intel platforms include 8086,80286,80386,80486, Pentium Series (1.2.3.4), Celeron series, Pentium D series

and Centrino P-m,core duo and so on.

2. x86_64 applies to Intel's Core 2 Duo, Centrino Core 2 Duo, and Xeon and AMD Athlon64/x2, SEMPRON64/X2, Duron64 and other 64-bit CPUs with X86 architecture.

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

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

4.Jigdo

Fedora distributions can also be downloaded via Jigdo. Jigdo can speed up the download of the ISO image of the installation disk. Unlike the BT download waiting task complete, Jidgo automatically locates the fastest mirror server (via the Fedora Image Manager) and downloads the required files from it. To reduce the amount of network traffic required, you can have Jigdo scan the existing DVD or CD media. This feature is especially useful for the following users.

2. getconf long_bit

run the following command on both 32-bit and 64-bit machines, with the following results:

[Email protected] ~]$ getconf long_bit
64


[Email protected]/]# getconf long_bit
32

How to view Linux versions how to see how many bits of Linux

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.