How to check Debian version

On Debian, type cat /etc/debian_version to display the Debian version.

Terminal

$ cat /etc/debian_version
9.5

Alternatively, cat /etc/issue

Terminal

$ cat /etc/issue
Debian GNU/Linux 9 \n \l

The last one, lsb-release -a, it will display the Debian detail.

Terminal

$ lsb-release -a
-bash: lsb-release: command not found
$ sudo apt-get install lsb-release

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:        9.5
Codename:       stretch

References

  1. Wikipedia – Debian
  2. lsb_release – Linux man page

About the Author

author image
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

avatar
0 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
Recent comment authors
newest oldest most voted