Created
July 13, 2014 21:04
-
-
Save lolsborn/c23cafc9e47de53c6fe7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function free() { | |
vm_stat \ | |
| perl -ne \ | |
'/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment