I’m administering a mix of Red Hat and Debian boxes, so this tip from bschmitz comes in handy…

cat /proc/version