Sometimes you just login in into a box using ssh and need to check the OS version.

If this box runs CentOS you can use this command to determine what is the CentOS version:

[root@box ~]# cat /etc/*release*
CentOS release 4.3 (Final)