Easy ways to view the distribution and version number of Linux OS.
Distribution version number
cat /etc/*release
For OS release details
cat /etc/os-release
For name and version number of your current distribution
lsb_release -d
To show additional information of current distribution version
lsb_release -a
Linux kernel version number
To shows the version of the Linux kernel that you’re currently using.
uname -r
For more information
uname -a
View everything at once
You have to install Inxi for this
apt-get -y install inxi
Once installed, you can view hardware, host, Linux kernel, desktop environment, and distribution with this simple command:
Inxi -Sz