Skip to content

Instantly share code, notes, and snippets.

@ThomasWunderlich
Created June 6, 2014 04:08
Show Gist options
  • Save ThomasWunderlich/0253a543a2f07270c97b to your computer and use it in GitHub Desktop.
Save ThomasWunderlich/0253a543a2f07270c97b to your computer and use it in GitHub Desktop.
Commands to identify most UNIX style OS' from Michael Henry @neocri.me
# Should work almost everywhere
uname -a ; grep -e . /etc/*_ver* /etc/*-rel* /etc/*-rel/* ; sw_vers
# Also relevant, but some systems don't have grep -R, -r, or --recursive
uname -a ; grep -Re . /etc/*_ver* /etc/*-rel* ; sw_vers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment