Skip to content

Instantly share code, notes, and snippets.

@DavMorr
Last active February 18, 2018 22:05
Show Gist options
  • Save DavMorr/bb4090087d323ee093f7d344ab9d02d7 to your computer and use it in GitHub Desktop.
Save DavMorr/bb4090087d323ee093f7d344ab9d02d7 to your computer and use it in GitHub Desktop.
Displays the current version of Linux OS running on machine, useful for quickly checking VM or Docker image.

Get Linux make, version and other info (same as cat /etc/os-release but with broader scope):

$ cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

More concise:

$ uname -a
Linux f1bf36fb7d4f 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment