How to check Linux Redhat version command

How to check Redhat version ? What command I need to type? Is it uname or something else?

Run any one of the following command to check RedHat Linux version

  1. cat /etc/redhat-release
  2. cat /etc/os-release
  3. hostnamectl
  4. lsb_release -a

For more info please see my tutorials:


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki