linux latest version code example
Example 1: linux version
sudo uname -a
Example 2: linux version
lsb_release -a
Example 3: linux red hat version
$ cat /etc/redhat-release
sudo uname -a
lsb_release -a
$ cat /etc/redhat-release