Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cleo

macrumors 65816
Original poster
This is probably an incredibly dumb question for most of you, but...

When I use "top" I can only see the first page of output. I'm trying to find the pid of a process that's not on that first page; how do I move down the list? 😕
 
You can also order how the data is output by typing

top -o <key> where "<key>" can be:
command - Command name.

cpu - CPU usage.

pid - Process ID (default).

prt - Number of Mach ports.

reg - Number of memory regions.

rprvt - Resident private address space size.

rshrd - Resident shared address space size.

rsize - Resident memory size.

th - Number of threads.

time - Execution time.

uid - User ID.

username - Username.

vprvt - Private address space size.

vsize - Total memory size.​

By default, top uses the pid to sort.
 
"top -l 0" (that's "ell zero") runs top as a one-shot command, listing all the processes. For your purposes it's just like the aforementioned "ps -ax".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.