You can determine your version of RedHat Enterprise/CentOS by running the following command.cat /etc/redhat-releaseAlthough the file is named ‘redhat-release’, this command will also work on CentOS.