get current os code example
Example 1: find operating system linux
#Get details about linux distro
cat /etc/os-release
Example 2: how to find distro name
cat /etc/os-release
lsb_release -a
hostnamectl
Type the following command to find Linux kernel version:
uname -r
Example 3: how to check os version
ver && cat /etc/os-release #Show Windows and Unix version respectively