December 2018
Beginner
826 pages
22h 54m
English
Things are much the same in the Debian world, although there are fewer OS version files to be worried about.
In Debian, we can look at the contents of /etc/debian_version for the version that we are running:
$ cat /etc/debian_version 9.5
Or, we can look in /etc/os-release, like with CentOS:
$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)"NAME="Debian GNU/Linux"VERSION_ID="9"VERSION="9 (stretch)"ID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/"
Also like in CentOS, we can grep the dmesg log for the version of our kernel:
$ sudo dmesg | grep "Linux version"[ 0.000000] Linux version 4.9.0-7-amd64 (debian-kernel@lists.debian.org) (gcc version ...
Read now
Unlock full access