Find the Debian or Ubuntu version

Monday, 15 August 2011 15:42

Find your Debian or Ubuntu version your are running

Sometimes you need to know the current version you are running.

  1. Open a terminal
  2. execute the following command

lsb_release -a

It should return something like :

user@Blackrain:/var/run$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 11.04
Release:    11.04
Codename:    natty

Find the running version for Debian

cat /etc/debian_version
user@Blackrain:/var/run$ cat /etc/debian_version
squeeze/sid

Find the running version for Ubuntu

cat /etc/issue
user@Blackrain:/var/run$ cat /etc/issue
Ubuntu 11.04 \n \l

Tags: find , version , ubuntu , debian , 11.04 , /var/run$ , running , /etc/debian_version , /etc/issue , lsb_release

Add comment


Security code
Refresh