Search code examples
linuxunix

how can i know on which flavour of linux i was using through command


It is possible that i should know the flavor of Linux through command-line

if i run the following command

$ uname -s output is

Linux

it just showing "Linux" and but not flavor name of Linux.


Solution

  • Have you tried cat /etc/*-release ?

    Other commands that might work:

    cat /etc/system-release # I believe mostly Red Hat based distro
    
    cat /proc/version