[Ilugc] 1D1C - top

  • From: devafree@xxxxxxxxx (Mahadevan R)
  • Date: Fri, 21 Jun 2013 10:14:07 -0700 (PDT)

command: top

purpose:? display Linux tasks.It can display system summary information
? ? ? ? ? ? ? ? as? well? as? a list? of? tasks? currently being managed by
the
? ? ? ? ? ? ? ? Linux kernel

3. when top is running Press (Shift+O) to Sort field via field letter, for
? ?  example press ?a? letter to sort process with PID (Process ID)
4. Press ?z? option in running top command will display running process
? ?  in color which may help you to identified running process easily
5. Top output keep refreshing until we press ?q?. With below command top
? ?  command will automatically exit after 10 number of repetition.
? ?  $top -n 10

W.r.t 'top' , I like ttyload, a nice tool to visualize cpu load and spikes in a 
simple plotted terminal graph. I run it in a screen so i can look at it any 
time by attaching to it.

screen -S myttyload? -> creates a screen called myttyload
screen -x myttyload -> attaches to it ; 
ctrl+A, then d -> detaches from screen without exiting.

Mahadevan

Other related posts: