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.
uname -a
  • eg. Linux ip-10-204-209-49 #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 Reply