top command displays a listing of the most CPU-intensive tasks on the system.
By default top command displays the processes in the order of CPU usage.
Example : $ top
Display selected user
$ top -u user-name
It displays a specific user processes only in the top command output.
Display only specific process with given PIDs
$ top -p PID
Quit top Command After a Specified Number of Iterations
$ top -n 2
Get top command help
$ top -h
No comments:
Post a Comment