How to check version and codename on Linux Distro?

February 13th, 2008 | by RoarinPenguin |

Simple way is by checking contents of file /etc/lsb-release, showing something like:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

Some Linux Distros have also command lsb-release  to provide such info…

Post a Comment