Here is how you can find out when logged in through SSH:
# uname -a
This generally won't tell you as much as you'd like.
# cat /proc/version
This will generally tell you more than you'd like.
Once you know that you are running Red Hat for example, you can get to the point with:
# cat /etc/redhat-release
Or on Debian:
# cat /etc/debian_version
Comment from: Ralph Visitor
#cat /etc/lsb-release ##Gives distro’s ID, Release, Codename, and Discription
Comment from: Anonymous Visitor
Thanks. This was what I was looking for.
Comment from: Web Design Montreal Visitor
Thank you I did # cat /proc/version and worked perfectly on Red hat
Comment from: Anand Visitor
#cat /etc/issue or
Comment from: sena Visitor
I was struggling to know which linux flavour my server runs. The cmd was really helpful :) Thanks.
Comment from: Sandeep Visitor
Thanks a lot for sharing this :)
Comment from: ben Visitor
Awesome, thanks :)
This post has 1 feedback awaiting moderation...