This guide explains how to check your Ubuntu version using the command line interface (CLI). It applies to both desktop and server environments.
If you are checking the Ubuntu version on a remote server, connect to it using an SSH client such as PuTTY and log in as the root user. Once connected, you can use the commands listed below.
Open the terminal by pressing Ctrl + Alt + T on your keyboard.
To display detailed Ubuntu version information, run:
lsb_release -a
For a simpler output, use:
lsb_release -d
The output will look similar to the example below:
root@examplevps:~# lsb_release -d
No LSB modules are available.
Description: Ubuntu 22.04 LTS
If the lsb_release command is unavailable, you can use these alternatives:
Check the lsb-release file:
cat /etc/lsb-release
Or check the issue file for basic version information:
cat /etc/issue
Both commands display your installed Ubuntu version details.These methods allow you to confirm your Ubuntu version quickly, whether you are managing a desktop or a server system. For further assistance or help with Ubuntu-based hosting, you can contact the Host.co.in support team anytime.