cat /etc/os-release
lsb_release -a
cat /etc/os-release
cat /etc/*release
cat /etc/issue*
cat /proc/version
cat /etc/os-release
#The best way to check Redhat version is using cat /etc/os-release command. All we need is to open the terminal and type cat /etc/os-release. It will list the Linux OS distribution name and release version information. This works on almost all Redhat system.
$ cat /etc/os-release
NAME=”Red Hat Enterprise Linux”
VERSION=”8.4 (Ootpa)”
ID=”rhel”
ID_LIKE=”fedora”
VERSION_ID=”8.4″
PLATFORM_ID=”platform:el8″
PRETTY_NAME=”Red Hat Enterprise Linux 8.4 (Ootpa)”
ANSI_COLOR=”0;31″
cat /etc/*release<span aria-hidden="true" class="line-numbers-rows"><span></span></span>
apt-get -y install inxi <span aria-hidden="true" class="line-numbers-rows"><span></span></span>