Originally Posted by repo
Just checked this on Fedora 10 and it doesn't give any clue about what I'm using.
has at least, hidden in a lot of other text, this: fc10
But the complete line looks like this
Linux raven.home.lan 18.104.22.168-170.2.35.fc10.x86_64 #1 SMP Mon Feb 23 13:00:23 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
so it could be missed if you don't know what you're looking for.
I'd suggest this one:
ls /etc | egrep "release|version"
Works on Red Hat-systems (including Fedora and CentOS), Debian, Slackware and partially on Ubuntu (which identifies as Debian). Maybe also others, but these are the ones I gave a quick test.