> ## Content Index
> Fetch the complete content index at: https://linuxhandbook.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Check Which Debian Version are you Running
- URL: https://linuxhandbook.com/check-debian-version/
- Published: 2019-08-16T09:24:06.000Z
- Updated: 2023-10-06T10:29:53.000Z
- Description: Wondering which Debian version are you running? This tutorial teaches you several ways to check Debian version in the terminal.
- Author: Abhishek Prakash
- Tags: Tips

Which Debian version am I running? You need the answer in situations such as when you are looking for a software that is available for certain Debian version only.

Knowing Debian version is helpful in many situations. Here’s how to do it.

## How to check Debian version?

The simplest way you can check Debian version is using the lsb\_release command:

```
lsb_release -a
```

Here’s the output:

```
pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
```

I am running Raspbian OS which is Debian customized for [Raspberry Pi](https://www.raspberrypi.org/?ref=linuxhandbook.com). As you can see, I am running [Debian 10 Buster](https://wiki.debian.org/DebianBuster?ref=linuxhandbook.com) here.

The lsb\_release is my favorite command as it can be used to [check the version of most Linux distribution](https://linuxhandbook.com/check-linux-version/) (if not all). For example, you can use it to [check CentOS version](https://linuxhandbook.com/check-centos-version/) as well.

But that’s not the only way. There are other commands to find Debian version in Linux terminal.

## Other methods to show Debian version

![Check Debian Version](https://linuxhandbook.com/content/images/2020/06/check-debian-version.png)

Do you recall the [Linux directory structure](https://linuxhandbook.com/linux-directory-structure/)? The /etc directory has the core configuration files and you can use them to find a lot of useful information about your system including the distribution version number.

Here are two ways to do that:

```
pi@raspberrypi:~ $ cat /etc/issue
Raspbian GNU/Linux 10 \n \l
```

The above command output shows that I am running Raspbian GNU Linux 10\. If you don’t like the way this output is presented, you can use this method to get just the version number of Debian.

```
pi@raspberrypi:~ $ cat /etc/debian_version 
10.0
```

But this one misses other crucial information. This is why recommend reading the dedicated file for this purpose:

```
cat /etc/os-release
```

Its output will show you a number of information like version umber, the code name and the project related URLs.

```
pi@raspberrypi:~ $ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
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"
```

Another evergreen way is to use systemd command hostnamectl. It’s mainly used for managing the hostname but you can also use it to get Debian version along with the kernel version.

```
hostnamectl
```

You can see the Debian version under the Operating System line.

```
pi@raspberrypi:~ $ hostnamectl 
   Static hostname: raspberrypi
         Icon name: computer
        Machine ID: 0035faf761f945b8923fc7d54632a941
           Boot ID: 6de8d489b3a24b6996bd08c9992a6de3
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 4.19.29-v7l+
      Architecture: arm
```

So, you just saw five ways to check Debian version. Which command did you like the most? Let me know in the comments.