Learning Linux distribution name from a running system


When you login remotely to a new system, sometimes you want to learn which distribution is used.

You can guess which distribution in used by looking around but there is a simple but not a standart way to this:

In Debian based systems:

cat /etc/debian_version

In RedHat based systems:

cat /etc/redhat-release