We can use three simple methods to check the Linux OS version:
- Using os-release file available in Linux’s etc directory
- Using lsb_release command
- Using version file available in Linux’s proc directory
- Using os-release file available in Linux’s etc directory.
We can check the Linux Operating System (OS) info by running the below command
~$ cat /etc/os-release
- Using lsb_release command.
LSB Stands for Linux Standard Base, we can check the Linux Operating System (OS) using lsb_release command
$ lsb_release -a
- Using version file available in Linux’s proc directory.
We can use the below command to check the Linux Operating System (OS)
~$ cat /proc/version