This is literally what lsb_release is for. Also works on non-Debian and derivatives. `lsb_release -sc` for the codename if you really want it :-)
1
2
Replying to @pwaring
I was writing in Markdown because I'm usually writing in Markdown and I forgot Twitter can't do Markdown. So :-P

Aug 20, 2018 ยท 8:15 AM UTC

4