Display the system's current tasks in a tree structure

Source: Internet
Author: User
Display the system's current tasks in a tree structure

Paobao (2001-07-29-10:17)

return 〗〖 Forwarding

Specifies the-forest option when running PS, and the currently running process will be displayed in a tree format. For example: All programs run by Xserver will be displayed as xserver as their "roots".
Command format:
PS AFX
Where ' a ' indicates that all running processes are listed, ' x ' lists all background processes; ' f ' is an abbreviation for '-forest '. The output is formatted as follows:

329? SW 0:00 [WDM]
342? R 9:57/_/usr/x11r6/bin/x: 0 vt7-fbbpp 16-auth/usr/etc/
343? SW 0:00/_ [WDM]
364? S 0:45/_/usr/bin/enlightenment
399? S 0:00/_/usr/bin/ssh-agent sh/home/tuneup/.xse
404? S 2:28/_ GKRELLM-WM
787? S 0:05/_ ATERM-FG white-tr
788 ttyp0 SW 0:00/_ [bash]
792 ttyp0 S 0:00/_ vim todo

Note: Another way to get the formatted output is: PSTREE–PU

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.