Vm = subprocess.Popen(, stdout=subprocess.PIPE).communicate().decode() Ps = subprocess.Popen(, stdout=subprocess.PIPE).communicate().decode() If you want it on the command line, here is a Python script that I wrote (or perhaps modified from someone else's, I can't remember, it's quite old now) to show you the Wired, Active, Inactive and Free memory amounts: #!/usr/bin/python As says, you can see this info in Activity Monitor.