Checking the OS version of a Linux system is a fundamental task for system administrators and users alike. It provides valuable information about the system’s software stack, security status, and compatibility with applications and services. Knowing the OS version is crucial for troubleshooting issues, applying updates, and ensuring the system is running optimally.
There are several methods to check the OS version in Linux, each with its advantages and use cases. The most common and straightforward approach is to use the `uname` command. This command displays various system information, including the kernel version, operating system name, and hardware platform. To display the OS version only, use the `-s` option as shown below: