I'm used to typing free -m
in ubuntu to see how much memory is available, in MB. What's the equivalent command in Mac OSX?
2 Answers
Since OS X is BSD-based, your best bet will be using sysctl
to get the information you need.
sysctl -a | awk '/hw./' && '/mem/'
You could also try this:
should be :
sysctl -a | awk '/hw./' && '/mem/'
(note the '/mem/'
)
then run the output through egrep
(depending upon what is desired).
There are some perl
scripts too - on the net.