skip to Main Content

I am trying to check which linux distribution is my server is running on. I tried some commands like lsb_release -d but no luck

lsb_release -d in terminal but saying command not found
/etc/*-release this is also not working, saying no such directory
/proc/version same output as above

2

Answers


  1. cat /etc/os-release
    

    This command will show information about the distribution without installing any additional packages. It should work on most distros.

    Login or Signup to reply.
  2. $ uname -r
    
    Try This Command this will Print the required information 
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search