

Login to the graphical interface > Open settings > click About in sidebar. hostnamectl Check Ubuntu Version using hostnamectl command Method 4: Check Ubuntu Version with GUI The output also shows the Ubuntu version details. The hostnamectl command is used to query and change the system’s hostname and related settings. Method 3: Check Ubuntu version with hostnamectl Command The above output shows that your system is running with Ubuntu 22.04 LTS system and the codename is focal. lsb_release -a Check Ubuntu version using lsb_release command Run the lsb_release command with -a option to view all details. This utility also reads the content from /etc/lsb-relese file. Open a terminal on your system and type: cat /etc/lsb-release Check Ubuntu version using /etc/release file Method 2: Check Ubuntu version with lsb-release CommandĪlternativeally, Use lsb-release command to view Ubuntu version details. You can view /etc/lsb-release file content to fine Ubuntu version and version-specific details. The /etc/lsb-release is the main file, which contains the Ubuntu version details. Here are 4 methods to find the Ubuntu version: Method 1: Check Ubuntu version in /etc/lsb-release File Also provide you instructions to check the Ubuntu version in Shell scripts, which will help to make the version-specific script. In this tutorial, you will learn various options to get the Ubuntu version details with the command line.

It provides lsb_release command-line tool to check Ubuntu version and other useful details. Which is basically written in the Python programming language. The lsb-release is the standard package for reporting the version on Ubuntu systems. In that case, you need to find the Ubuntu version you are using.
UBUNTU VERSION INSTALL
While working, we need to install multiple third-party software, which is available for version-specific.

It is an open-source operating system available free to all. The Ubuntu operating system is a good alternative for Windows and macOS users.
