Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created June 26, 2022 17:05
Show Gist options
  • Select an option

  • Save denzhel/91ddaa3a17280aa7cd09033f45b9c553 to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/91ddaa3a17280aa7cd09033f45b9c553 to your computer and use it in GitHub Desktop.
linux - show memory usage by process

To show the memory usage by process, use the following:

ps -o pid,user,%mem,command ax | sort -b -k3 -r

You can also use top and issue a Shift+M combination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment