Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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:
What version of RHEL am I using?

I would like to find out the true and actual release version of Red Hat OS.

I know that catting /etc/redhat-release file is a popular solution...but what if somebody had tweaked that file to allow some software installation like Oracle?

In such a case, I would be getting wrong information.

Is "more /proc/version" most reliable way?

share|improve this question

marked as duplicate by quanta, John Gardeniers, EEAA, Antoine Benkemoun, Jason Berg Sep 21 '11 at 5:03

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.

Thanks! From that post it looks like lsb_release is the command that can fetch version info from source of truth.. – Ben Sep 21 '11 at 3:18

I always use cat /etc/*release -- works for most (all?) distros.

share|improve this answer

I'd use /etc/issue, as /etc/*release files are sometimes modified to meet software compatibility requirements (Dell or HP's management agents, for instance).

share|improve this answer

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