Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to check version of linux command line

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″
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #check #version #linux #command #line
ADD COMMENT
Topic
Name
4+7 =