Thrum

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?

  1. Sort by CPU. Run top -o cpu. The busiest process is at the top of the list.
  2. Sort by memory. Run top -o mem. MEM is the physical footprint, the same figure as Activity Monitor's Memory column.
  3. Show fewer columns. Run top -o cpu -stats pid,command,cpu,mem,threads,user to keep only the columns you need, so the line fits the window.
  4. 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.
  5. Quit. Press q.

What does the header at the top mean?

LineWhat it shows
ProcessesTotal processes, how many are running and sleeping, and the total thread count.
Load AvgLoad average over 1, 5 and 15 minutes.
CPU usageUser, sys and idle as a share of the whole CPU, adding up to 100%.
PhysMemMemory used, of which wired and held by the compressor, and unused memory.
VMSwapins and swapouts since startup.
Networks / DisksPackets and data in and out, and disk reads and writes, since startup.

Which keys work while top is running?

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