Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :)

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

"cat /etc/issue" will show the distribution on most platforms, unless someone has modified it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.