Discovering your Debian version

Posted by fitheach on Wed 08 July 2015

Today, I dug out an old Lex Light fanless PC which I haven't used for years. The first thing I had to do was find out the version of Debian it was running which I normally do by checking the contents of the sources.list file. I wondered if there was an easier way to find out the current version and indeed there is:

cat /etc/debian_version
wheezy/sid

I don't know why I never noticed that file before.

After a bit more searching online I discovered there was another way to find this information (and more):

lsb_release -a

No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing (wheezy)
Release:    testing
Codename:    wheezy

You learn something new every day!


Related posts: