Como verificar a versão da linha de comando Linux
cat /etc/os-release
TheDutchScorpion
cat /etc/os-release
dmesg | head -1
cat /etc/*-version # For those OS's like Slackware
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″