Find The Version Of CentOS/RHEL Without Rebooting
Want to know if you have CentOS 4.5 or 5.0? Issue this command:
cat /etc/redhat-release
That file contains the needed version information.
[root@localhost ~]# cat /etc/redhat-release CentOS release 5 (Final)