Questions tagged [pstree]

4 questions
1
vote
2 answers

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 specified attribute for each process (may be stat or…
Tran Triet
  • 675
  • 1
  • 11
  • 27
0
votes
1 answer

pstree using VT100 graphic chars

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 ├──◆ 00050 root /usr/libexec/UserEventAgent…
user10726006
  • 227
  • 2
  • 8
0
votes
1 answer

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" - " $9}' | grep 'DBASE1.RES' | awk '{print $1}') | sed…
l0ckm4
  • 103
  • 4
0
votes
2 answers

How can I get only the ancestry processes of a given process?

Is it correct that pstree will output all the descendant processes of the given process pstree -s will output all the descendant processes and ancestry processes of the given process How can I get only the ancestry processes of a given…
Tim
  • 98,580
  • 191
  • 570
  • 977