Skip to content

Instantly share code, notes, and snippets.

@michaelminter
Created October 31, 2013 16:39
Show Gist options
  • Select an option

  • Save michaelminter/7252874 to your computer and use it in GitHub Desktop.

Select an option

Save michaelminter/7252874 to your computer and use it in GitHub Desktop.
Determine OS information from command line
cat /proc/version #=>
Linux version 2.6.32.12-rscloud ([email protected]) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #26 SMP Mon May 17 12:35:34 UTC 2010
uname -a #=>
Linux staging 2.6.32.12-rscloud #26 SMP Mon May 17 12:35:34 UTC 2010 x86_64 GNU/Linux
cat /etc/*version #=>
squeeze/sid
cat /etc/*release #=>
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
goo.gl/ppDhgl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment