YouTip LogoYouTip

Linux Comm Pstree

# Linux pstree Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux pstree (English full name: display a tree of processes) command displays all processes in a tree diagram. The tree diagram will use the pid (if specified) or the init process as the root. If a user id is specified, the tree diagram will only display processes owned by that user. Permissions required: All users. ### Syntax pstree [-h|-Hpid] [-G|-U] [pid|user] or pstree -V **Parameter Explanation**: * -a Displays the complete command and arguments for the process. If the process has been swapped out of memory, it will be enclosed in parentheses. * -c If there are duplicate process names, they are listed separately (the default is to prefix them with *). ### Examples Display process relationships pstree init-+-amd |-apmd |-atd |-httpd---10*%pstree -p init(1)-+-amd(447)|-apmd(105)|-atd(339)%pstree -c init-+-amd |-apmd |-atd |-httpd-+-httpd | |-httpd | |-httpd | |-httpd .... Specifically indicate running processes # pstree -apnh //Display relationships between processes Display user names simultaneously # pstree -u //Display user names [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm RebootLinux Comm Top β†’