Another Linux quickie – Determine your Linux distribution
I find myself staring at a remote shell, not knowing what Linux distribution the box is running. There does not seem to be any uname like universal command for this. Here are a few files to try:
OpenSuse:
cat /etc/SuSE-release
cat /etc/issue
Debian and it’s variants:
cat /etc/debian_version
RedHat:
cat/etc/redhat-release
Slackware:
cat /etc/slackware-version
And this one too:
dmesg | head -1
Tags: Linux
