×



Need to know Ubuntu version if your Linux Server via command line?

This guide is for you.

Ubuntu Linux is a free and open source operating system. Knowing your Ubuntu os version and name can be very useful for applying security patches and software updates.
Here at LinuxAPT, we regularly help our Customers to perform Software Installation tasks on their Linux Server as part of our Server Management Services.
In this context, we shall look into the steps to find out your Ubuntu Linux version from the CLI and GUI methods.

How to Check Ubuntu version in Linux ?

The procedure to find Operating system name and version on Ubuntu Linux is stated below:
i. Open the terminal application (bash shell) by pressing Ctrl+Alt+T

ii. For remote server login using the ssh: ssh user@server-name

iii. Type any one of the following command to find os name and version in Ubuntu:

cat /etc/os-release
lsb_release -a
hostnamectl

iv. Type the following command to find Ubuntu Linux kernel version:

uname -r

Now let us see all examples in detailed to check your Ubuntu version.

How to display Ubuntu Version Number using /etc/os-release file ?

To do this, execute the following cat command:

$ cat /etc/os-release

You will get an output such as this;

NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic


How to check your Ubuntu version From the lsb_release terminal command ?

The lsb_release command gives LSB (Linux Standard Base) and distribution-specific information on the CLI. The syntax to use is:

$ lsb_release -a

You will get an output such as this;

No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:    18.04
Codename:    bionic

How to check Ubuntu version using the hostnamectl command ?

The hostnamectl command may be used to query and change the system hostname and related settings. It can also display your Linux distribution name and kernel version as well:

$ hostnamectl


How to find Ubuntu version using GUI ?

You can see Ubuntu version graphically, i.e. using GUI.
To do this:
1. Open System Settings by pressing the Super key on your keyboard and type "settings".
2. Then, Click on Details. You will see version below Ubuntu Logo.

[Need urgent support to Install Software on Ubuntu Server? We are available 247.]


Conclusion


More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com