How to find if it Red Hat Linux or Oracle Linux

Oracle Linux provides enterprise-release package .

Red Hat Linux provides redhat-release package.

So we need to execute the below commands :

rpm -qa|grep enterprise-release  : If there is an output from this command this means the OS is : Oracle Linux

rpm -qa|grep redhat-release : If there is an output from this command this means that the OS is: Red Hat Linux

Please follow and like us:

Please add your comments here