I was recently doing something over ssh on my hosts shared server and realized that I didn’t know what Linux distro I was working in.

My server was running Red Hat
I did some Googling and found a number of suggestions on how to find this information out. Only the last of these three actually worked for me but I thought I would include them because it seems that they work for others on different systems.
lsb_release -a
cat /etc/lsb_release
cat /proc/version
Hopefully one of these will work for you.
