Check to see if the system is 64-bit or 32-bit:
| The code is as follows |
Copy Code |
|
1, getconf long_bit or getconf word_bit
[Root@localhost ~]# getconf Long_bit
64 |
List all version information,
| The code is as follows |
Copy Code |
|
[Root@localhost ~]# Lsb_release-a
LSB Version:: core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32: Graphics-3.1-noarch
Distributor Id:centos
Description:centos Release 5.5 (Final)
release:5.5
Codename:final |
All right, other information about viewing the CentOS version, we can refer to the following methods
The following commands are available to view:
| The code is as follows |
Copy Code |
|
# lsb_release-a
LSB Version:: Core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor Id:centos
Description:centos Release 5.4 (Final)
release:5.4
Codename:final |
This command applies to all Linux, including Redhat, SuSE, Debian and other distributions.
| The code is as follows |
Copy Code |
|
Root@mymail ~ # uname
Linux
Root@mymail ~ # Uname-r
2.6.18-164.el5 |
The following two methods apply to Redhat,centos
| The code is as follows |
Copy Code |
|
Root@mymail ~ # Cat/etc/redhat-release
CentOS Release 5.4 (Final) |
Log on to Linux execution rpm-q redhat-release
| The code is as follows |
Copy Code |
#rpm-Q Redhat-release
|
or CentOS
| The code is as follows |
Copy Code |
|
Root@mymail ~ # rpm-q Centos-release
Centos-release-5-4.el5.centos.1 |
You can also view the release number by using the uname command
| code is as follows |
copy code |
[root@www ~]# Uname-r
2.6.18-92.el5
[root@www ~]# uname-a
Linux www 2.6.18-92.el5 #1 SMP Tue June 18:49:47 ED T 2008 i686 Athlon i386 Gnu/linux |