Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created March 15, 2012 00:10
Show Gist options
  • Save ingydotnet/2040613 to your computer and use it in GitHub Desktop.
Save ingydotnet/2040613 to your computer and use it in GitHub Desktop.
vm_stat | perl -0e '($t=<>)=~/(\d+)\s+bytes.*Pages free:\s+(\d+).*Pages active:\s+(\d+)/s or die; print($1*($2+$3)/1024)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment