Questions tagged [pstree]
The pstree tag has no summary.
5 questions
4 votes
1 answer
154 views
How to show the pstree all the way down to each of a list of PIDs?
% ps -ax | grep nvim 17593 ?? 2121:43.42 nvim --embed 17674 ?? 0:26.66 /Users/me/.local/share/nvim/mason/packages/lua-language-server/libexec/bin/lua-language-server 94363 ?? 1:...
0 votes
1 answer
70 views
pstree using VT100 graphic chars [duplicate]
I am running pstree on MacOS Majave and wan to Show branches of processes using VT100 graphic chars: $ pstree -g 2 | head -n 3 ─┬◆ 00001 root /sbin/launchd ├──◆ 00049 root /usr/sbin/syslogd ├──◆ ...
0 votes
1 answer
216 views
Use derived output from a series of commands to egrep from pstree -p command
I have the following long one liner which essentially provides a list of PIDs with a '|' delim character echo $(lsof -p $(pgrep -f dosemu | tr '\012' ,) | grep '/media/datadrv' | awk '{print $2" - " $...
1 vote
2 answers
2k views
How to show process tree with specified attributes
The command pstree shows a process tree such as this systemd-+--agetty +--dbus-daemon +--login----bash---pstree +--systemd-qqsd I want to show a process tree with some ...
1 vote
2 answers
2k views
How can I get only the ancestry processes of a given process?
Is it correct that pstree <pid> will output all the descendant processes of the given process pstree -s <pid> will output all the descendant processes and ancestry processes of the given ...