Skip to content

Instantly share code, notes, and snippets.

@josephok
Created August 11, 2015 07:38
Show Gist options
  • Save josephok/2c614cdd42a3c162e494 to your computer and use it in GitHub Desktop.
Save josephok/2c614cdd42a3c162e494 to your computer and use it in GitHub Desktop.
Get top 10 memory-consuming applications
ps -aux | sort -nr -k 6 | head -10 | awk '{printf "%dM %s\n", $6/1024, $11}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment