In this article, you will learn how to check the Ubuntu version.
When managing a server or troubleshooting issues, knowing the version of Ubuntu installed on your system is essential. Below are simple methods to check your Ubuntu version using different tools and commands.
- Check Using “lsb_release” Command
The “lsb_release” command provides full information about the Linux distribution.
Steps:- Open a terminal window.
- Type the following command:
lsb_release -a
- Look for the description and release fields in the output to find your Ubuntu version.
- Check Using “/etc/os-release” File:
This file contains information about the operating system.
Steps:- Open the terminal.
- Run this command:
cat /etc/os-release
- Locate the VERSION or VERSION_ID line to identify your Ubuntu version.
- Check Using /etc/issue File:
The “/etc/issue” file contains the version information shown before the login prompt.
Steps:- In the terminal, enter:
cat /etc/issue
- The output will display the Ubuntu version.
- In the terminal, enter:
- Check Using “hostnamectl” Command:
The “hostnamectl” command offers additional system information, including the OS version.
Steps:- Open the terminal.
- Execute the command:
hostnamectl
- Look for the operating system field in the output.
- Check Using Graphical Interface (GUI):
If you have access to Ubuntu’s graphical interface:- Go to Settings → About.
- The Ubuntu version will be listed under OS Name or Details.
In this manner, you can use these methods to quickly find the version of Ubuntu running on your system. These commands are compatible with most Ubuntu distributions, ensuring you can install the right software and manage updates effectively.
Learn how to install Python 3 on Ubuntu 20.04 or 22.04 with this easy-to-follow step-by-step guide.