Check the version of the Linux kernel.

1, the cat/proc/version

[root@S-CentOS home]# cat /proc/version
Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013
Copy the code

2, uname -a

[root@S-CentOS home]# uname -aLinux S - CentOS 2.6.32-431. The el6. X86_64#1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Copy the code

2. Run the following commands to view the Linux version:

1, lsb_release – a

  • Can list all version information
  • This commandApplicable to allLinux distributions, including RedHat, SUSE, Debian… Such as distribution
[root@S-CentOS ~]# lsb_release -aLSB Version: : base - 4.0 - amd64: base - 4.0 - noarch: core - 4.0 - amd64: core - 4.0 - noarch: graphics - 4.0 - amd64: graphics - 4.0 - noarch: printing - 4.0 - amd64 : Print-4.0-noarch Distributor ID: CentOS Description: CentOS Release 6.5 (Final) Release: 6.5 Codename: FinalCopy the code

2, the cat/etc/redhat – release

  • This methodOnly suitable for RedhatLinux
[root@S-CentOS home]# cat /etc/redhat-release
CentOS release 6.5 (Final)
Copy the code

3, the cat/etc/issue

  • This commandApplicable to allLinux distribution.
[root@S-CentOS home]# cat /etc/issueCentOS release 6.5 (Final) Kernel on an \mCopy the code