linux red hat version

Shell
$ cat /etc/redhat-release

Source

Also in Shell: