1. View the kernel version command:
360kb.com:~> cat/proc/version
Linux version 2.6.32-358.el6.x86_64 ([email protected]) (GCC version 4.4.7 20120313 (Red Hat 4.4.7-3) (gcc)) #1 SMP Fri F EB 00:31:26 UTC 2013
360kb.com:~> uname-a
Linux 192.168.1.10 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 00:31:26 UTC x86_64 x86_64 x86_64 gnu/linux
360kb.com:~> Uname-r
2.6.32-358.el6.x86_64
2. View the Linux version:
1) Perform lsb_release-a to list all version information, for example:
360kb.com:/> lsb_release-a
LSB Version:core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch: Graphics-3.0-ia32:graphics-3.0-noarch
Distributor Id:suse LINUX
Description:suse LINUX Enterprise Server 9 (i586)
Release:9
codename:n/a
Note: This command applies to all Linux, including Redhat, SuSE, Debian, and other distributions.
2) Execute the Cat/etc/issue, for example as follows:
360kb.com:/> cat/etc/issue
Welcome to SUSE LINUX Enterprise Server 9 (i586)-Kernel \ R (\l).
3) Execute the Cat/etc/redhat-release, for example as follows:
360kb.com:/> cat/etc/*release*
CentOS Release 6.4 (Final)
CentOS Release 6.4 (Final)
CentOS Release 6.4 (Final)
Cpe:/o:centos:linux:6:ga
How to view Linux OS versions