Linux stores version information in a file called /proc/version. As a sysadmin you need to know the version number of the Linux kernel on given server or workstation. This information can be used for the following purpose:
- To fix device driver issue.
- Install correct driver for NIC/RAID card.
- Diagnosing system.
- Upgrading system and more.
Howto: Find the kernel version
You need to type the following command at shell prompt:
$ uname -r
The following command gives out more information:
$ cat /proc/version
Linux version 2.6.18-194.3.1.el5 (firstname.lastname@example.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Sun May 2 04:17:42 EDT 2010
Please note that you can also use the following command:
$ uname -a
Linux b1 3.2.0-51-generic #77-Ubuntu SMP Wed Jul 24 20:18:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
More About Linux Kernel Version Release Numbers Between 1.0 and 2.6.x
The Linux kernel used odd minor version numbers to denote development releases and even minor version numbers to denote stable releases; For example, Linux kernel version 2.3 was a development version and Linux 2.4 was the stable version. Since 2004 release of the v2.6 kernel, Linux no longer uses this system, and has a much shorter release cycle, instead now simply incrementing the third number, using a fourth number as necessary.
This tutorial is also available in a quick video format:
Video 01: Find The Linux Kernel Version Command Tutorial
- 30 Cool Open Source Software I Discovered in 2013
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop