How to Check your Ubuntu Version

Before we start any setup or ubuntu software installation, we should verify if the version of ubuntu is supported by the software to check the version.

The preferred method of checking your version of Ubuntu is to use the lsb_release utility, which displays LSB (Linux Standard Base) information about a Linux distribution. This method will work regardless of the desktop environment or version of Ubuntu you are running.

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

Instead of printing all the information above which may not be relevant, you can also display a description line, which shows the version of Ubuntu using the -d switch.

# lsb_release -d
Description:    Ubuntu 20.04.5 LTS

Check your Ubuntu Version

Leave a Comment