#Linux -ing:

. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}"