How to get the OS Version
Kernel Release:
uname -r
Distro & Release info:
lsb_release -a