When you are using any operating system, the minimum is to know the version of the operating system you are using.
This is also necessary to see if the program you want to install matches that version. It also helps with troubleshooting quickly. If you include the version number in your searches on forums and blogs, you'll get a more specific answer to your questions.
So how do you find out if your preferred software is compatible with your Ubuntu operating system?
The Ubuntu version you're using will be crucial information.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Ubuntu systems queries.
In this context, we shall look into how to check the Ubuntu version by the terminal.
Different ways to check the Ubuntu Version by the terminal ?
1. Check the Ubuntu version by using the lsb_release -a command:
$ lsb_release -a
2. Check the Ubuntu version by using the /etc/issue file
The /etc/issue file contains the system identifier text. Using cat command to read it:
$ cat /etc/issue
3. Check the Ubuntu version by using the /etc/os-release file
The /etc/os-release file contains data that identifies the operating system. This option only works at Ubuntu 16.04 or newer. Using cat command to read it:
$ cat /etc/os-release
4. Check the Ubuntu version by using the hostnamectl command
This option only works at Ubuntu 16.04 or newer:
[Need help in fixing Linux system Packages issues? We can help you. ]