Skip to content

Instantly share code, notes, and snippets.

@bsima
Created November 22, 2014 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsima/a924706f509691050853 to your computer and use it in GitHub Desktop.
Save bsima/a924706f509691050853 to your computer and use it in GitHub Desktop.
top -o cpu -O +rsize -s 5 -n 20
Sort the processes according to CPU usage (descending) and
resident memory size (ascending), sample and update the display
at 5 second intervals, and limit the display to 20 processes.
top -c d Run top in delta mode.
top -stats pid,command,cpu,th,pstate,time
Display only the specified statistics, regardless of any growth of
the terminal. If the terminal is too small, only the statistics
that fit will be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment