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?
Macos – the Mac OSX equivalent of free -m
macosmemoryterminal
Related Question
- macos – Mac OS X Equivalent of the Ubuntu ‘Tree’ Command
- Macos – How Do I Install PHP CLI on Mac OS X
- Macos – How to monitor memory usage of a process running from the terminal in OSX
- Macos – xvfb-run on Mac OSX
- Linux – Getting the full path to a file with “readlink -f” does NOT work on OSX
- Macos – How to inspect memory map on OSX
Best Answer
Since OS X is BSD-based, your best bet will be using
sysctl
to get the information you need.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