How To Get Ubuntu, Debian, Kali Release Version? – POFTUT

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.

Current List Of Ubuntu Releases
Current List Of Ubuntu Releases

LTS means 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
Print lsb-release File
Print lsb-release File

We will get following information from lsb-release file.

  • `DISTRIB_ID` shows distribution name
  • `DISTRIB_RELEASE` shows the release number
  • `DISTRIB_CODENAME` shows the release name
  • `DISTRIB_DESCRIPTION` shows user friendly distribution name

lsb_release Command

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
lsb_release Command
lsb_release Command

We can see from output that distribution is Ubuntu, Distribution Version is 17.04 and the code name of the version is zesty

Unity GUI

We can get version information from GUI too. OpenSystem Settings->Details will show following screen where information like version can architecture is shown.

From GUI
From GUI

By the Ubuntu version following information is also provided.

LEARN MORE  How To Find Microsoft (MS) SQL Database Server Version and List Of SQL Server Version?

GNOME Desktop

We can get information from GNOME System Monitor like below.

GNOME Desktop
GNOME Desktop

uname Command

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 with -a option.

$ uname -a

 

How To Get Ubuntu, Debian, Kali Release Version? Infografic

How To Get Ubuntu, Debian, Kali Release Version? Infografic
How To Get Ubuntu, Debian, Kali Release Version? Infografic

 

Leave a Comment