get detailed version of red hat code example Example: linux red hat version $ cat /etc/redhat-release