Tuesday, 27 November 2007

What Linux (Ubuntu) version am I running?

To display the version of the Ubuntu you're running - run this on the command/cmd line (Or check the contents of /etc/lsb-release):
lsb_release -a

An example response should look like:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 7.04
Release: 7.04
Codename: feisty

In theory it should work on any LSB (Linux Standard Base) distro...


  1. Also uname -r will get ya the linux kernel you're using.

  2. True - but I was interested in getting Ubuntu release version details (e.g. "Ubuntu 7.04 Feisty").