know os version linux code example
Example 1: find operating system linux
#Get details about linux distro
cat /etc/os-release
Example 2: linux version
sudo uname -a
#Get details about linux distro
cat /etc/os-release
sudo uname -a