What is the Mac OSX equivalent of free -m

11,256

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:

https://apple.stackexchange.com/questions/4286/is-there-a-mac-os-x-terminal-version-of-the-free-command-in-linux-systems

Share:
11,256

Related videos on Youtube

jimbo
Author by

jimbo

Updated on September 18, 2022

Comments

  • jimbo
    jimbo almost 2 years

    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?

  • jimbo
    jimbo over 11 years
    Thanks, that's close, the other question has some good suggestions.