Skip to content

Instantly share code, notes, and snippets.

@peter
Created December 10, 2020 09:21
Show Gist options
  • Save peter/ae09353c9e7d2ba959720d56daa97cad to your computer and use it in GitHub Desktop.
Save peter/ae09353c9e7d2ba959720d56daa97cad to your computer and use it in GitHub Desktop.
Check Linux Version
#!/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