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:
Open a terminal and run the following command:
This command will display detailed information about your Linux distribution, including the release version.
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:
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:
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…