pstree Linux Commands

What is Linux pstree Command?

Explanation

pstree COMMAND:

pstree command displays the process hierarchy in a tree structured format. It also shows the parent/child relationship between the processes.

SYNTAX :


pstree

OPTIONS:


-a Show command line arguments.
-c Disable compaction of identical subtrees.
-G Use VT100 line drawing characters.
-h Highlight the current process and its ancestors.
-l Display long lines.
-n Sort processes with the same ancestor by PID instead of by name. (Numeric sort.)
-u Show uid transitions.
-V Display version information.
-s Show Security ID (SID) for each process.
-x Show security context for each process.

EXAMPLE:


  1. pstree
    Output:
    pstree Linux Command

  2. The above image shows all the running processes in a tree structure.

Ask Questions

Ask Question