Possible Duplicate:
How do I find out what version of Linux is running?

This happens sometimes: I ssh into a machine but I forgot (or never knew) what linux distribution it's running.

How can I find out? I'd like a general way to at least solve this problem for the more popular distributions - I don't mind if it involves several steps, but one single command would be ideal :)

link|improve this question

78% accept rate
A duplicate of 3331. Lots of helpful stuff there for you. – jldugger Sep 25 '09 at 20:02
feedback

closed as exact duplicate by jldugger, Zoredache, mrdenny Sep 26 '09 at 2:37

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.