Show the current task with a tree structure

zhaozj2021-02-17  85

Show the current task with a tree structure

Baobao (2001-07-29 10:17) 〖Back〗 〖Forward〗

Specify the -forest option when running the PS, the currently running process will be displayed in a tree format. For example: All procedures running by xserver will be displayed as their "root" as XServer. Command format: PS AFX where 'A' indicates all running processes; 'X' lists all background processes; 'F' is the abbreviation of '-forest'. The output format is 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 / enlightenment399? s 0:00 / _ / usr / bin / ssh-agent sh /home/tuneup/.xse404? s 2:28 / _ gkrellm - WM787? s 0:05 / _ aterm -fg white -tr788 TTYP0 SW 0:00 / _ [Bash] 792 TTYP0 S 0:00 / _ Vim Todo Note: Another way to get formatted output results is: PStree - PU

转载请注明原文地址:https://www.9cbs.com/read-31567.html

New Post(0)