How to check Debian version
By:Roy.LiuLast updated:2019-08-17
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
From:一号门
Previous:Python Whois client example
COMMENTS