check debian version code example
Example 1: What debian version do i use
lsb_release -a
#this shows all info about your distro.
Example 2: check debian version
$ lsb_release -a
Example 3: debian get minor version
LSB_OS_RELEASE="" lsb_release -a