How to check OS Version in Linux


Inorder to check the version of your Linux operating system, you can use the lsb_release command or various other commands depending on your Linux distribution.

The below are a few common methods:

Using the lsb_release command:

Open a terminal and run the following command:

    lsb_release -a

This command will display detailed information about your Linux distribution, including the release version.

Using the cat command on specific version files:

Some Linux distributions have specific files that store version information. You can use the cat command to display the contents of these files. For example:

cat /etc/os-release

or

cat /etc/issue

Using the uname command:

The uname command can display various system information, including the kernel version. While it doesn’t directly provide the distribution version, the kernel version can often give you a hint about the underlying distribution. Run the following command:

uname -a

These methods should work on many Linux distributions, including Ubuntu, Debian, CentOS, Fedora, and others. However, keep in mind that some less common distributions may have different commands or locations for version information files.

Thanks for Reading…