Skip to content

Latest commit

 

History

History
44 lines (38 loc) · 1.42 KB

'top'.md

File metadata and controls

44 lines (38 loc) · 1.42 KB

top

Process filter

pids=( $( pgrep 'process1|process2|process3' ) )
top "${pids[@]/#/-p }"

Toggles

t - toggle CPU load meter style
1 - toggle split CPU load meter
0 - hide 0.0 value
R - sort
c - toggle command name/line
z - toggle color
W - save
L - find

h or ? - help
W - write(save setting)
q - quit

  Z,B,E,e   Global: 'Z' colors; 'B' bold; 'E'/'e' summary/task memory scale
  l,t,m     Toggle Summary: 'l' load avg; 't' task/cpu stats; 'm' memory info
  0,1,2,3,I Toggle: '0' zeros; '1/2/3' cpus or numa node views; 'I' Irix mode
  f,F,X     Fields: 'f'/'F' add/remove/order/sort; 'X' increase fixed-width

  L,&,<,> . Locate: 'L'/'&' find/again; Move sort column: '<'/'>' left/right
  R,H,V,J . Toggle: 'R' Sort; 'H' Threads; 'V' Forest view; 'J' Num justify
  c,i,S,j . Toggle: 'c' Cmd name/line; 'i' Idle; 'S' Time; 'j' Str justify
  x,y     . Toggle highlights: 'x' sort field; 'y' running tasks
  z,b     . Toggle: 'z' color/mono; 'b' bold/reverse (only if 'x' or 'y')
  u,U,o,O . Filter by: 'u'/'U' effective/any user; 'o'/'O' other criteria
  n,#,^O  . Set: 'n'/'#' max tasks displayed; Show: Ctrl+'O' other filter(s)
  C,...   . Toggle scroll coordinates msg for: up,down,left,right,home,end

  k,r       Manipulate tasks: 'k' kill; 'r' renice
  d or s    Set update interval
  Y       Inspect other output 'Y'
  q,esc     return
          ( commands shown with '.' require a visible task display window )