Created
April 12, 2012 19:30
-
-
Save remear/2370372 to your computer and use it in GitHub Desktop.
Free Memory Command on OS X
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
echo -e "\n$(top -l 1 | awk '/PhysMem/';)\n" | |
=> PhysMem: 1701M wired, 6232M active, 976M inactive, 8909M used, 3376M free. | |
Add to ~/.bash_profile | |
alias freemem="top -l 1 | awk '/PhysMem/'" | |
A more brief output: | |
top -l 1 | awk '/PhysMem:/ {print $10}' | |
=> 3362M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment