Show processes attached to a terminal.

Section: Filtering and Sorting

Filter by TTY

bash
bash
ps -t pts/0 -f
Explanation

Show processes attached to a terminal.

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 Filtering and Sorting
Filter by parent PID
List child processes of a specific parent.
OpenIn sheetbashsame section
Sort by CPU
Show the most CPU-intensive processes first.
OpenIn sheetbashsame section
Sort by memory
Show the most memory-intensive processes first.
OpenIn sheetbashsame section
Find process owned by user
Limit matches to one or more users.
OpenIn sheetbashsame section
Find process by terminal
Match processes running on a specific terminal.
OpenIn sheetbashsame section
Filter by state
Find processes in a given state, here zombies.
OpenIn sheetbashsame section