

He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. Fedora Linux serves as its upstream source for RHEL. These examples also work on community-supported distributions like CentOS and Scientific Linux and commercial forks like Oracle Linux. This page showed you various RHEL command to find out your Redhat Enterprise Linux (RHEL) version. Ver=$ ( grep '^VERSION_ID' /etc /os-release | awk -F '=' '' /etc /os-release ) echo " $rhel_ver" Conclusion Let us run all commands on RHEL version 7: Lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarchĭescription: Red Hat Enterprise Linux release 8.0 Beta (Ootpa) However, you need to install a package named redhat-lsb-core using the yum command as follows Sample outputs: 86_64Īnother option is to run lsb_release command. Operating System: Red Hat Enterprise Linux 8.0 Beta (Ootpa)ĬPE OS Name: cpe:/o:redhat:enterprise_linux:8.0:beta Sample outputs: Static hostname: nixcraft-rhel8 Simply run the following hostnamectl command: Uname -mrs How to confirm RedHat Enterprise Linux version using hostnamectl To display the RHEL kernel version, type: Sample outputs: Red Hat Enterprise Linux Server release 7.5 (Maipo) Let us see all commands in details for finding and displaying Red Hat Enterprise Linux (RHEL) version on screen.

RHEL 7.x or above user can use the hostnamectl command to get RHEL version.Another option to get Red Hat Enterprise Linux version:.Show RHEL version using command line, run:.To display the Red Hat Enterprise Linux version use any one of the following command/methods:
