Latest blog entry

How to check the version of Debian or Ubuntu OS?

December 13, 2009    |   Posted by admin   |    Category: Linux Administration

How to check the version of Debian OR Ubuntu OS?

To find out the version of Debian OS you are running, execute

# cat /etc/debian_version

There are 2 ways to find out the version of Ubuntu OS you are running.

1. Check the file /etc/issue and the output will be something like:

# cat /etc/issue
Debian GNU/Linux 5.x

2. Execute the lsb_release command:

# lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 5.x (lenny)
Release:        5.x
Codename:       lenny

Comments Off on How to check the version of Debian or Ubuntu OS?