Skip to content

Instantly share code, notes, and snippets.

@devlights
Created April 15, 2018 16:34
Show Gist options
  • Save devlights/c6e5e4ddf6d545fa852aad8441fc0030 to your computer and use it in GitHub Desktop.
Save devlights/c6e5e4ddf6d545fa852aad8441fc0030 to your computer and use it in GitHub Desktop.
[mac] メモリ量をコマンドラインから取得 (top, grep, memory physmem)

Mac で 使用メモリ量 を コマンドライン から取得

$ top -l 1 | grep -i physmem

出力例

PhysMem: 6359M used (1524M wired), 1832M unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment