Skip to content

Instantly share code, notes, and snippets.

@crh0831
Created April 25, 2023 01:02
Show Gist options
  • Save crh0831/9f28b2bfe97e35c1d254889b8d00ae3c to your computer and use it in GitHub Desktop.
Save crh0831/9f28b2bfe97e35c1d254889b8d00ae3c to your computer and use it in GitHub Desktop.
Find top memory users on Linux

top memory users (mempigs)

ps aux  | awk '{print $6/1024 " MB\t\t" $11 " " $12}'  | sort -n | tail -10

Alias it with:

alias mempigs="ps aux | awk '{print \$6/1024 \" MB\t\t\" \$11 \" \" \$12}'  | sort -n | tail -10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment