Skip to content

Instantly share code, notes, and snippets.

@mze3e
Created March 21, 2021 09:10
Show Gist options
  • Save mze3e/769fcfc9a57e8be29cd90d4fcce2866f to your computer and use it in GitHub Desktop.
Save mze3e/769fcfc9a57e8be29cd90d4fcce2866f to your computer and use it in GitHub Desktop.
How to check linux flavor and version
For checking kernel version:
uname -a
For checking Linux flavor and version:
cat /proc/version
Once you know that you are running Red Hat for example, you can get to the point with:
cat /etc/redhat-release
Or on Debian:
cat /etc/debian_version
or in general :
cat /etc/*-release
Also you could use the following command
cat /etc/issue
Courtesy: https://stackoverflow.com/questions/13036048/how-do-i-identify-the-particular-linux-flavor-via-command-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment