CentOS Linux FAQ: What commands can I use to show what version of CentOS Linux I'm using?
There are at least two different ways to show what version of CentOS Linux you're using. First, you can use the Linux cat command on the
/etc/redhat-release file. Here's the command, and sample output:
# cat /etc/redhat-release
CentOS release 5.6 (Final)
You can also use the lsb_release command with the -a option. Here's that command, and its output: