http://sopace.blog.51cto.com/1227753/670526
How do you know what version of Linux you're using, and here are a few ways to get the answer.
1. View Kernel Version command:
1) [root@q1test01 ~]# cat/proc/version
Linux version 2.6.9-22.elsmp (bhcompile@crowe.devel.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 18:00:54 EDT 2005
2) [root@q1test01 ~]# uname-a
Linux q1test01 2.6.9-22.elsmp #1 SMP Mon Sep 18:00:54 EDT x86_64 x86_64 x86_64 gnu/linux
3) [root@q1test01 ~]# Uname-r
2.6.9-22.elsmp
2. View Linux version:
1 log on to the server to perform lsb_release-a, listing all version information, for example:
[Root@3.5.5biz-46 ~]# [root@q1test01 ~]# 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, for example, as follows:
[Root@q1test01 ~]# Cat/etc/issue
Red Hat Enterprise Linux as Release 4 (Nahant Update 2)
Kernel \ r \m
3 log in to the Linux execution cat/etc/redhat-release, for example, as follows:
[Root@q1test01 ~]# Cat/etc/redhat-release
Red Hat Enterprise Linux as Release 4 (Nahant Update 2)
Note: In this way you can see the exact version number, such as AS4 Update 1
4 log in to the Linux execution Rpm-q redhat-release, for example, as follows:
[root@q1test01 ~]# rpm-q Redhat-release
Redhat-release-4as-3
Note: In this way you can see a so-called release number, such as the above example is 3
There is a certain correspondence between this 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.
To see if the Linux machine is 32-bit or 64-bit: 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 L IBS), stripped
If the bit is shown as 32bit; Uname-a:
Uname-a
Linux pmx002**.**.** 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010x86_64x86_64 x86_64
x86_64 says 64-bit machines
Uname-a
Linux pmx0**.**.** 2.6.9-5.elsmp #1 SMP Wed 5 19:30:39 EST 2005i686i686 i386-Gnu/linux
i686 says 32-bit machines
i686 is just a subset of I386, supported CPUs starting with Pentium 2 (686), and previous models are not supported.
Note:
1. The i386 applies to all 32-bit CPUs of Intel and AMD, and via 32 CPUs using the 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 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 disc, and the installation DVD includes two graphical interfaces (KDE and GNOME).
4.Jigdo
You can also download the Fedora release via Jigdo. Jigdo can speed up the download of an ISO image of the installation disk. Unlike the BT download wait task complete, Jidgo automatically locates the fastest mirror server (through the Fedora mirroring Manager) and downloads the required files from it. To reduce the amount of network traffic you need, you can have Jigdo scan existing DVD or CD media. This feature is especially useful for the following users.
Getconf Long_bit
Run the following command on 32-bit and 64-bit machines with the following results:
[B@002 ~]$ getconf Long_bit
64
[Root@pmx4/]# getconf Long_bit
32