Find Linux Version

There are several ways of finding the version of a linux system. Not all work on every system.

cat /etc/*-release
  • eg. CentOS release 5.5 (Final)
uname -r
  • eg. 2.6.21.7-2.fc8xen
uname -a
  • eg. Linux ip-10-204-209-49 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
  • eg Debian GNU/Linux 5.0
lsb_release -si
  • eg Ubuntu
lsb_release -sc
  • eg Natty

Leave a comment

Your email address will not be published. Required fields are marked *