Linux / Unix Command: top
usage: top -hv | -bcisSH -d delay -n iterations [-u user | -U user] -p pid [,pid ...]
NAME
top - display top CPU processes
SYNOPSIS
top [-] [d delay] [p pid] [q] [c] [C] [S] [s] [i] [n iter] [b]
DESCRIPTION
top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes. It can sort the tasks by CPU usage, memory usage and runtime. can be better configured than the standard top from the procps suite. Most features can either be selected by an interactive command or by specifying the feature in the personal or system-wide configuration file. See below for more information.
COMMAND-LINE OPTIONS
-d
Specifies the delay between screen updates. You can change this with the s interactive command.
-p
Monitor only processes with given process id. This flag can be given up to twenty times. This option is neither available interactively nor can it be put into the configuration file.
#top
top - 18:36:19 up 3:23, 1 user, load average: 0.12, 0.07, 0.02
Tasks: 53 total, 2 running, 51 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 384672k total, 188856k used, 195816k free, 30748k buffers
Swap: 779144k total, 0k used, 779144k free, 96652k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
42 root 15 0 0 0 0 S 0.3 0.0 0:01.88 pdflush
10711 root 16 0 2812 976 772 R 0.3 0.3 0:00.03 top
1 root 16 0 2528 620 532 S 0.0 0.2 0:01.57 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.01 events/0
5 root 5 -10 0 0 0 S 0.0 0.0 0:00.09 khelper


