How to Work With Top Command M Memory Usage t Time d Update Time

How to Working in Top Command M Memory Usage t Time d Change update Time
[root@bashscript]#top
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
NI Refer to the Nice Value of the Process
RES Indicate Resident Task Size
SHR mention Shared Memory Used
S Status of the Task S-Sleeping R Running T Stopped or Traced



Top Command Shortcut Key
k
Kill the process
d
Top Command refresh time
c
Display absolute path or commend
z,b
Highlight running process
n
Display No of tast
w
Save the top command output
q
Quit The Top command
SHORTING
M
Short By Memory Usage
P
Short By CPU Usage
T
Short by Timing
U
List by User-name

1)     Top Command Signal
Signal

Meaning
R
Running
S
Sleeping
D
Uninterpretable sleep
T
Traced stopped
Z
Zombie Process (hang)
2)    Get the Details Information about the process
#cat /proc/<pid>/status
3) "o" Display the Column Details


PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                             
 2685 root      15   0 35404 8604 5828 S 30.3  1.7   1:28.94 Xorg                                
 2887 root      15   0 63328  15m 9752 R  7.3  3.0   0:07.50 gnome-terminal                      
 2841 root      15   0 46036  10m 8200 S  2.0  2.1   0:02.17 wnck-applet                         
 2779 root      15   0 33460 7928 6596 S  1.3  1.5   0:01.66 gnome-settings-                     
 2784 root      15   0 16428 7816 6304 S  0.7  1.5   0:03.64 metacity                            
 2788 root      15   0 47060  11m 8880 S  0.7  2.3   0:01.89 gnome-panel

Related post