Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Terminal Tips

(Up to OJB's Mac Terminal Tips List Page)


Top Processes

This command is useful to monitor which processes are using most of the CPU time. If your computer is getting slow it is sometimes because a program has got a bit out of control. Even if this is a conventional program it can be hard to identify but if it is a background process this technique is essential.

The top command shows the top processes running on your machine. By default the top command displays processes in the reverse order they were started (so top itself is always at the top). It shows enough lines to fill the screen and redraws the screen once per second. It displays basic memory and CPU specs. Try it by just typing top. To stop top running just type control-c (hold down the control key and press c).

A more useful form of this command is top -u -s5 10. This will display the processes sorted by how much CPU time they use, it re-draws the list every 5 seconds and displays the top 10 processes. For information about commands which can be used to work with the processes you discover this way see the related commands below.

More information: Getting Started.

Related commands: Terminate a Process, Viewing Running Processes.


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]

Comment on this page: Very UsefulQuite UsefulUseless or: View Results