skip navigation

www.Hilands.com


Content:: How to determine the version of linux you are running

How to determine the version of Linux
OS: Linux
Last Modified: 2013-05-12
Table of Contents
Information in the "issue" file
Most linux systems will hold some type of information in the /etc/issue file. cat /etc/issue
Debian GNU/Linux 6.0 \n \l
Debian "debian_version" file
Debian distributions keep the version the of the system to the last update in /etc/debian_verison. Where as the /etc/issue contains information for the version of Debian that was installed on the system. cat /etc/debian_version
6.0.3
Linux Standard base
If /etc/issue does not exist you can try lsb_release -a lsb_release will show the LSB (Linux Standard Base) and Distribution information.

The output will look like
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.7 (squeeze)
Release:        6.0.7
Codename:       squeeze
If lsb_release is not installed you can install it with # apt-get install lsb-release

The lsb_release program checks /etc/lsb-release. You can also view the file with # cat /etc/lsb-release
Gathering information with uname
The uname command will show more information about the kernel and build information. uname -a
Linux <hostname> 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux
You can show just the kernel Version with uname -r
2.6.26-2-686
References
-->