Linux pstree

Common parameters

Format: pstree

A tree diagram shows the process, show only the name of the process, and the same process of merging display.

Format: pstree -p

A tree diagram shows the process, but also show the process PID.

Format: pstree <pid>

Format: pstree -p <pid>

A tree diagram shows the PID of the process <pid> is the process as well as descendants of the process, if there is -p parameter is displayed simultaneously PID of each process.

Format: pstree -a

Displays a tree view of the process of the process of the same name do not merge display, and it displays the command-line arguments, if -p parameter is displayed simultaneously PID of each process.

Because the information may be more pstree output, so it is best used in conjunction with more / less.

Guess you like

Origin www.cnblogs.com/allenhaozi/p/11425858.html