Forrest logo
tool overview
On this page you find all important commands for the CLI tool pstree. If the command you are looking for is missing please ask our AI.

pstree

Pstree is a command-line tool available in Linux-based operating systems that displays the running processes in a tree-like hierarchical structure. It presents a visual representation of the processes and their relationships.

The tool shows the parent-child relationships between processes, with the output starting from the init (PID 1) process as the root. Each child process is represented as a branch extending from its parent process.

Pstree also displays additional information about the processes, such as the process ID (PID), the user running the process, and the amount of CPU usage. It can help identify the relationships and dependencies between different processes running on a system.

By default, pstree displays all the processes in the system, but it can also be used to display the subtree of a specific process by specifying its PID. This can be useful to analyze a particular branch of processes and their children.

The command also offers options to modify the output, such as highlighting particular processes, displaying the full command-line arguments, or omitting idle processes. These options provide additional flexibility to customize the output according to specific requirements.

Overall, pstree is a handy command-line utility to gain insights into the running processes of a Linux system and understand their hierarchical relationships.

List of commands for pstree:

tool overview