How to check the Linux OS version ?

We can use three simple methods to check the Linux OS version:

  1. Using os-release file available in Linux’s etc directory
  2. Using lsb_release command
  3. 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

Leave a Reply

Your email address will not be published. Required fields are marked *