Skip to content

Instantly share code, notes, and snippets.

@pataiji
Last active December 24, 2015 23:09
Show Gist options
  • Save pataiji/6878328 to your computer and use it in GitHub Desktop.
Save pataiji/6878328 to your computer and use it in GitHub Desktop.
特定のプロセスのメモリ使用量を表示する。そのうちオプション追加する。
function pm {
if [ -n "$1" ]; then
ps aux | grep $1 | grep -v grep | awk '{printf ("%dK\t%s\n",$6,$11)}'
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment