How do I know which version of Debian I'm running?

In a tutorial, I’m prompted “If you are running Squeeze, follow these instructions…” and “If you are running Wheezy, follow these other instructions…”

When I run uname, I get the following information:

Linux dragon-debian 3.2.0-4-686-pae #1 SMP Debian 3.2.63-2+deb7u2 i686 GNU/Linux

Is that information enough to know if I’m using Squeeze or Wheezy, or do I get that from somewhere else?

Asked By: IQAndreas

||

Commands to try:

cat /etc/*-release

cat /proc/version

lsb_release -a
– this shows “certain LSB (Linux Standard Base) and distribution-specific information”.

For a shell script to get the details on different platforms, there’s this related question.

Answered By: PM 2Ring

To get the exact version number use

cat /etc/debian_version
Answered By: air4x

david@asus:/usr/share/applications$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.6 (jessie)
Release: 8.6
Codename: jessie

Answered By: David
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Answered By: brennersepp
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.