How do you use the top command on a Mac?
Last reviewed: 19 November 2026.
Open Terminal and run top -o cpu to see processes sorted by CPU, refreshed every second; press q to quit. The macOS version of top is not the Linux one: sorting uses -o with a key name such as cpu, mem or power, and -l prints samples as plain text you can save.
What are the most useful top commands?
- Sort by CPU. Run
top -o cpu. The busiest process is at the top of the list. - Sort by memory. Run
top -o mem. MEM is the physical footprint, the same figure as Activity Monitor's Memory column. - Show fewer columns. Run
top -o cpu -stats pid,command,cpu,mem,threads,userto keep only the columns you need, so the line fits the window. - Take a snapshot. Run
top -l 2 -n 10 -o cpu -stats pid,command,cpu. It prints two samples and exits; read the second, because the first sample's %CPU is invalid. - Quit. Press q.
What does the header at the top mean?
| Line | What it shows |
|---|---|
| Processes | Total processes, how many are running and sleeping, and the total thread count. |
| Load Avg | Load average over 1, 5 and 15 minutes. |
| CPU usage | User, sys and idle as a share of the whole CPU, adding up to 100%. |
| PhysMem | Memory used, of which wired and held by the compressor, and unused memory. |
| VM | Swapins and swapouts since startup. |
| Networks / Disks | Packets and data in and out, and disk reads and writes, since startup. |
Which keys work while top is running?
othen a key name, such asmem, changes the sort order.sthen a number changes the update interval in seconds.Uthen a user name shows only that user's processes.Sthen a signal and a PID sends a signal; the default is TERM.?shows the help screen, andqquits.
How is macOS top different from Linux top?
Linux users often type top -o %CPU or press P and M to sort. On macOS those do not work: the sort keys are lowercase names (cpu, mem, time, threads, pid), and the man page lists them under -o. The macOS top also accepts power and idlew, which show the same energy score and idle wake-ups as Activity Monitor's Energy and CPU tabs.
To log over time, run top -l 0 -s 60 -n 5 -o cpu -stats pid,command,cpu > ~/top-log.txt. It writes the five busiest processes every 60 seconds until you press Control-C.
How can Thrum help?
Thrum keeps a live CPU graph in the menu bar. One click shows the eight processes using the most CPU. An optional alert tells you when a process stays above a CPU level you choose (50 to 200% of one core) for 1 to 10 minutes.
Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.
Questions
Why does top show 0.0 %CPU for everything?
With -l 1, top prints a single sample, and the first sample's %CPU is invalid because it is calculated from the difference between two samples. Use -l 2 and read the second sample.
Does top use a lot of CPU?
A little. Its man page notes that detailed memory statistics are costly to calculate; the defaults keep that low.
Sources
- top(1) man page: run man top in Terminal