How to check the version of Debian or Ubuntu OS?

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

This entry was posted on Sunday, December 13th, 2009 and is filed under Linux Administration. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.