How To Get Ubuntu, Debian, Kali Release Version?
I have take new job and I have a lot of new Ubuntu servers to manage. There is no inventory about the Ubuntu servers. I only know that they are Ubuntu. Is there a way to get Ubuntu version of this servers? Linux Standards Base aka LSB defines standards for different Linux distributions. Ubuntu comply with LSB. In LSB complied distributions should store their release versions at /etc/lsb-release so we can simple Ubuntu version from there.
Current List Of Ubuntu Releases
Supported list of current Ubuntu releases are like below.
Long Term Support. LTS versions supported 5 years but regular versions a supported up to next version.
Print lsb-release File
Release related information is stored in file named
/etc/lsb-release. We can use
cat command simply print related information.
$ cat /etc/lsb-release
We will get following information from lsb-release file.
DISTRIB_IDshows distribution name
DISTRIB_RELEASEshows the release number
DISTRIB_CODENAMEshows the release name
DISTRIB_DESCRIPTIONshows user friendly distribution name
We can also use
lsb_releasewhich is provided by default. Actually this command reads
/etc/lsb-release file. We will also provide
-a option in order to print all information.
$ lsb_release -a
We can see from output that distribution is
Ubuntu, Distribution Version is
17.04 and the code name of the version is
We can get version information from GUI too. Open
Details will show following screen where information like version can architecture is shown.
By the Ubuntu version following information is also provided.
We can get information from GNOME System Monitor like below.
uname command is used to get information about distribution and kernel but there will be no detailed information about distribution version. We can use
$ uname -a
How To Get Ubuntu, Debian, Kali Release Version? Infografic