Created
December 10, 2020 09:21
-
-
Save peter/ae09353c9e7d2ba959720d56daa97cad to your computer and use it in GitHub Desktop.
Check Linux Version
This file contains 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
#!/bin/bash | |
uname -a | |
if test -f "/etc/os-release"; then | |
cat /etc/os-release | |
fi | |
if command -v lsb_release; then | |
lsb_release -a | |
fi | |
cat /proc/version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment