redhat-release

What is my CentOS/RedHat/Fedora Linux Distribution Name and Version


There are many way find the Linux Distribution Name and Version, but my favorite to findĀ  CentOS/RedHat/Fedora distribution name and version is to read from /etc/redhat-release file. In CentOS 6.5, /etc/redhat-release file contain following contents: # cat /etc/redhat-release CentOS release 6.5 (Final To find out distribution name, use command: awk ‘{print $1}’ /etc/redhat-release And to…