You may be used to working on Linux, whether it’s a version of Debian, Red Hat, SUSE, Slackware, or one of their versions, and sometimes you try to remember which version of the operating system you’re connected to. from a distance. If any Linux user knows the command » join me »This identifies the machine architecture, kernel version or host name, full version join me will not display the release version under its trade name.
This tutorial provides the command to know the exact version of the operating system , not kernel information, but the common name of the Red Hat-based Linux distribution ( RedHat, CentOS, Fedora ).
Specifically, the RHEL core business has been included in several derivative distributions: CentOS, Oracle Linux, Asianux, ROSA, ClearOS, Scientific Linux, CERN Linux, but also Google Search Appliance, Check Point SecurePlatform, Cisco Unified Communications Manager, VMware ESX and Amazon Linux. All of these distributions are based on a Red Hat Enterprise Linux kernel and therefore support the commands listed below.
Order example join me :
# uname -a Linux vmcentos 3.10.0-818.104.22.168.3.el7.x86_64 #1 SMP Vie Jun 15 04:15:27 UTC 2018 x86_64 x86_64 x86_64 x86_64 x86_64 x86_64 GNU/Linux
It is impossible to know if it is a CentOS version 6, 7 or another system.
On the other hand, a simple «uname -r» will indicate the kernel version and thus know which is the common RHEL base used by the derived distribution. Information that may be sufficient in some cases but does not provide a clear indication of the trade name of the operating system currently in force.
Get to know the commercial version of Red Hat, CentOS, Fedora
1. Open a local terminal or remote SSH connection on the Linux machine.
2. Enter the following command:
# cat /etc/redhat-release
3. The statement shows the name of the CentOS, Fedora or RedHat operating system company. E.g:
CentOS Linux version 7.5.1804 (Core) Release of Fedora 24 (Twenty-four) Redhat version 5.2 (Tikanga)