Skip to main content

Linux Processes

Process Parent

ps -o ppid= -p <pid>

Process information

ps -Flww -p <pid>

On Linux, top actually supports focusing on a single process, although it naturally doesn't have a history graph:

top -p <pid>

This is also available on Mac OS X with a different syntax:

top -pid <pid>

See also pidstat. (part of sysstat package)