check distribution version linux code example
Example 1: 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 2: linux version
lsb_release -a
cat /etc/os-release
lsb_release -a
hostnamectl
Type the following command to find Linux kernel version:
uname -r
lsb_release -a