There are several ways to find the OS version in Ubuntu Linux:
- Using the
lsb_release
command: This command provides information about the Linux Standard Base (LSB) and the version of Ubuntu that you’re running. To use it, run the following command in your terminal:
lsb_release -a
- Using the
/etc/os-release
file: This file contains information about the operating system, including the version and release number. To view the information, you can run the following command:
cat /etc/os-release
- Using the
hostnamectl
command: This command provides system information, including the operating system version. To use it, run the following command in your terminal:
hostnamectl
- Using the
/proc/version
file: This file contains the version information for the Linux kernel. To view the information, you can run the following command:
cat /proc/version
No matter which method you use, you should be able to find the version of Ubuntu that you’re running, along with other relevant information about your system.