Main Tutorials

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 Author

author image
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

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments