Last active
December 22, 2015 19:49
-
-
Save gjedeer/6522293 to your computer and use it in GitHub Desktop.
One-liner to detect Linux distro and version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# One-liner to detect Linux distro and version | |
cat /etc/issue;uname -a;if [ -f /etc/lsb-release ]; then echo "Ubuntu"; cat /etc/lsb-release; fi;if [ -f /etc/debian_version ]; then echo "Debian"; cat /etc/debian_version; fi;if [ -f /etc/redhat-release ]; then echo "RHEL"; cat /etc/redhat-release; fi;if [ -f /etc/SuSE-release ]; then echo "SuSE"; cat /etc/SuSE-release; fi; | |
# One-liner to detect Linux distro and version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment