I'm aware that there's a couple of methods to check your CentOS release version but if I want to check using the release files I see there's two options.

cat /etc/centos-release or cat /etc/redhat-release

is there any reason to choose one over the other?


No difference at all.

/etc/redhat-release is a symbolic link to /etc/centos-release

From the terminal, execute the following and note the output:

$ ls -l /etc/redhat-release
lrwxrwxrwx. 1 root root 14 Dec 10  2019 /etc/redhat-release -> centos-release

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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