[Ilugc] One Day One GNU/Linux Command (TOP)
sbharathi at MidasComm.Com
Wed Jul 16 11:01:37 IST 2008
"No Software Patents!" -- Allowing patents over software ideas will
seriously affect the Creativity, Productivity and Freedom of all.
One Day One GNU/Linux Command
top -- Display TOP Intensive processes
TOP provides an ongoing look at processor activity in real time. TOP
list the process, which is sorted based on the CPU usage of the each
task on the system. It can also sort the tasks by memory usage & run
$ top -- List the most CPU-Intensive processes.
$ top -q -- Runs with the highest possible priority.
$ top -d 6 -- List will be updated every 6 Sec.
$ top -n 5 -- Update the list for 5 times and then exit.
$ top -p 100 -p 200 -- Monitor only process with PID 100 & 200.
Maximum 20 processes can be monitored.
$ top -s -- Run in secure mode (Disables the potentially dangerous
$ top -c -- List the process with command line options instead of the
command name only (default).
$ top -b -n 5 > myfile -- Run in Batch mode & dump the output in myfile.
1) Batch Mode is useful for sending output from top to other programs
or to a file. It runs until it produces the number of iterations
requested with the n option or until killed.
2) TOP supports few interactive commands to change the output formats
like changing update time and few actions like killing a process.
Read : man top
More information about the ilugc