Inspect a specific process by PID.

Section: Process Inspection Basics

Show one PID

bash
bash
ps -p 1234 -f
Explanation

Inspect a specific process by PID.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Process Inspection Basics
List processes for a user
Filter processes by effective user and show full format.
OpenIn sheetbashsame section
List processes with BSD format
Show all processes with user, CPU, memory, and command columns.
OpenIn sheetbashsame section
List processes with full format
Show all processes with PID, PPID, start time, and command.
OpenIn sheetbashsame section
Show parent-child tree in ps
Render a process tree using ps output.
OpenIn sheetbashsame section
Find PID by name
Return matching PIDs for a process name pattern.
OpenIn sheetbashsame section
Find PID with pidof
List the PIDs of a program by executable name.
OpenIn sheetbashsame section