
{"id":5896,"date":"2009-11-22T15:50:25","date_gmt":"2009-11-22T10:20:25","guid":{"rendered":"http:\/\/froisa.com\/?p=39"},"modified":"2009-11-22T15:50:25","modified_gmt":"2009-11-22T10:20:25","slug":"pstree-process-status-tree","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2009\/11\/22\/pstree-process-status-tree\/","title":{"rendered":"pstree &#8211;  process status tree"},"content":{"rendered":"<h4><u>Linux Command<br \/>\n<\/u><\/h4>\n<pre style=\"font-size:55%\">\nsystemd-+-ModemManager---3*[{ModemManager}]\n        |-NetworkManager---3*[{NetworkManager}]\n        |-accounts-daemon---3*[{accounts-daemon}]\n        |-avahi-daemon---avahi-daemon\n        |-bluetoothd\n        |-colord---3*[{colord}]\n        |-cron\n        |-cups-browsed---3*[{cups-browsed}]\n        |-cupsd\n        |-dbus-daemon\n        |-exim4\n        |-fwupd---5*[{fwupd}]\n        |-gdm3-+-gdm-session-wor-+-gdm-x-session-+-Xorg---13*[{Xorg}]\n        |      |                 |               |-gnome-session-b-+-ssh-agent\n        |      |                 |               |                 `-4*[{gnome-session-b}]\n        |      |                 |               `-3*[{gdm-x-session}]\n        |      |                 `-3*[{gdm-session-wor}]\n        |      `-3*[{gdm3}]\n        |-geoclue---3*[{geoclue}]\n        |-gpm\n        |-nm-dispatcher---4*[{nm-dispatcher}]\n        |-polkitd---3*[{polkitd}]\n        |-power-profiles----3*[{power-profiles-}]\n        |-rsyslogd---3*[{rsyslogd}]\n        |-rtkit-daemon---2*[{rtkit-daemon}]\n        |-sshd\n        |-switcheroo-cont---3*[{switcheroo-cont}]\n        |-systemd-+-(sd-pam)\n        |         |-at-spi-bus-laun-+-dbus-daemon\n        |         |                 `-4*[{at-spi-bus-laun}]\n        |         |-at-spi2-registr---3*[{at-spi2-registr}]\n        |         |-dbus-daemon\n        |         |-dconf-service---3*[{dconf-service}]\n        |         |-evolution-addre---6*[{evolution-addre}]\n        |         |-evolution-calen---9*[{evolution-calen}]\n        |         |-evolution-sourc---4*[{evolution-sourc}]\n        |         |-gcr-ssh-agent---2*[{gcr-ssh-agent}]\n        |         |-2*[gjs---11*[{gjs}]]\n        |         |-gnome-keyring-d---4*[{gnome-keyring-d}]\n        |         |-gnome-session-b-+-evolution-alarm---7*[{evolution-alarm}]\n        |         |                 |-gnome-software---16*[{gnome-software}]\n        |         |                 |-gsd-disk-utilit---3*[{gsd-disk-utilit}]\n        |         |                 `-4*[{gnome-session-b}]\n        |         |-gnome-session-c---{gnome-session-c}\n        |         |-gnome-shell-+-firefox-+-Isolated Servic---20*[{Isolated Servic}]\n        |         |             |         |-Isolated Web Co---23*[{Isolated Web Co}]\n        |         |             |         |-3*[Isolated Web Co---17*[{Isolated Web Co}]]\n        |         |             |         |-3*[Isolated Web Co---18*[{Isolated Web Co}]]\n        |         |             |         |-Privileged Cont---18*[{Privileged Cont}]\n        |         |             |         |-RDD Process---3*[{RDD Process}]\n        |         |             |         |-Socket Process---4*[{Socket Process}]\n        |         |             |         |-Utility Process---3*[{Utility Process}]\n        |         |             |         |-3*[Web Content---10*[{Web Content}]]\n        |         |             |         |-WebExtensions---17*[{WebExtensions}]\n        |         |             |         `-182*[{firefox}]\n        |         |             |-mutter-x11-fram---14*[{mutter-x11-fram}]\n        |         |             `-35*[{gnome-shell}]\n        |         |-gnome-shell-cal---6*[{gnome-shell-cal}]\n        |         |-gnome-terminal--+-bash---git-+-git---git-remote-http\n        |         |                 |            |-git\n        |         |                 |            `-{git}\n        |         |                 |-bash---pstree\n        |         |                 `-5*[{gnome-terminal-}]\n        |         |-goa-daemon---4*[{goa-daemon}]\n        |         |-goa-identity-se---3*[{goa-identity-se}]\n        |         |-gsd-a11y-settin---4*[{gsd-a11y-settin}]\n        |         |-gsd-color---4*[{gsd-color}]\n        |         |-gsd-datetime---4*[{gsd-datetime}]\n        |         |-gsd-housekeepin---4*[{gsd-housekeepin}]\n        |         |-gsd-keyboard---4*[{gsd-keyboard}]\n        |         |-gsd-media-keys---5*[{gsd-media-keys}]\n        |         |-gsd-power---5*[{gsd-power}]\n        |         |-gsd-print-notif---3*[{gsd-print-notif}]\n        |         |-gsd-printer---3*[{gsd-printer}]\n        |         |-gsd-rfkill---3*[{gsd-rfkill}]\n        |         |-gsd-screensaver---3*[{gsd-screensaver}]\n        |         |-gsd-sharing---4*[{gsd-sharing}]\n        |         |-gsd-smartcard---4*[{gsd-smartcard}]\n        |         |-gsd-sound---4*[{gsd-sound}]\n        |         |-gsd-usb-protect---4*[{gsd-usb-protect}]\n        |         |-gsd-wacom---3*[{gsd-wacom}]\n        |         |-gsd-xsettings---4*[{gsd-xsettings}]\n        |         |-gvfs-afc-volume---4*[{gvfs-afc-volume}]\n        |         |-gvfs-goa-volume---3*[{gvfs-goa-volume}]\n        |         |-gvfs-gphoto2-vo---3*[{gvfs-gphoto2-vo}]\n        |         |-gvfs-mtp-volume---3*[{gvfs-mtp-volume}]\n        |         |-gvfs-udisks2-vo---4*[{gvfs-udisks2-vo}]\n        |         |-gvfsd-+-gvfsd-dnssd---3*[{gvfsd-dnssd}]\n        |         |       |-gvfsd-network---4*[{gvfsd-network}]\n        |         |       |-gvfsd-trash---4*[{gvfsd-trash}]\n        |         |       `-3*[{gvfsd}]\n        |         |-gvfsd-fuse---6*[{gvfsd-fuse}]\n        |         |-gvfsd-metadata---3*[{gvfsd-metadata}]\n        |         |-ibus-daemon-+-ibus-dconf---4*[{ibus-dconf}]\n        |         |             |-ibus-engine-sim---3*[{ibus-engine-sim}]\n        |         |             |-ibus-extension----4*[{ibus-extension-}]\n        |         |             `-3*[{ibus-daemon}]\n        |         |-ibus-portal---3*[{ibus-portal}]\n        |         |-ibus-x11---3*[{ibus-x11}]\n        |         |-jackdbus\n        |         |-2*[pipewire---2*[{pipewire}]]\n        |         |-pipewire-pulse---2*[{pipewire-pulse}]\n        |         |-sd_dummy---2*[{sd_dummy}]\n        |         |-sd_espeak-ng---{sd_espeak-ng}\n        |         |-speech-dispatch---4*[{speech-dispatch}]\n        |         |-tracker-miner-f---7*[{tracker-miner-f}]\n        |         |-wireplumber---5*[{wireplumber}]\n        |         |-xdg-desktop-por---6*[{xdg-desktop-por}]\n        |         |-xdg-desktop-por---14*[{xdg-desktop-por}]\n        |         |-xdg-desktop-por---4*[{xdg-desktop-por}]\n        |         |-xdg-document-po-+-fusermount3\n        |         |                 `-6*[{xdg-document-po}]\n        |         `-xdg-permission----3*[{xdg-permission-}]\n        |-systemd-hostnam\n        |-systemd-journal\n        |-systemd-logind\n        |-systemd-timesyn---{systemd-timesyn}\n        |-systemd-udevd\n        |-udisksd---5*[{udisksd}]\n        |-unattended-upgr---{unattended-upgr}\n        |-upowerd---3*[{upowerd}]\n        `-wpa_supplicant\n\n<\/pre>\n<h4><u> Explanation <\/u><\/h4>\n<pre>pstree  shows running processes  as a  tree. The  tree is\nrooted at either pid or init if pid is omitted. If a user\nname is specified, all  process trees rooted at processes\nowned by that user are shown.\n\n<\/pre>\n<h4><u> Related Source Code Exposition <\/u><code><br \/>\nstatic void free_buffers()<br \/>\n{<br \/>\nif (width != NULL) {<br \/>\nfree(width);<br \/>\nwidth = NULL;<br \/>\n}<br \/>\nif (more != NULL) {<br \/>\nfree(more);<br \/>\nmore = NULL;<br \/>\n}<br \/>\ncapacity = 0;<br \/>\n}<\/code><\/h4>\n<p>&nbsp;<\/p>\n<h4><u> Source Code Highlight <\/u><\/h4>\n<p>Frees any buffers allocated by ensure_buffer_capacity.<\/p>\n<p>&nbsp;<\/p>\n<h4><u> Featured Image <\/u><\/h4>\n<p><a href=\"http:\/\/jeffrin.files.wordpress.com\/2009\/11\/pstree-April-18.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-5117\" title=\"pstree-April-18\" src=\"http:\/\/jeffrin.files.wordpress.com\/2009\/11\/pstree-April-18.png\" alt=\"\" width=\"406\" height=\"247\" \/><\/a><\/p>\n<h4><u> Related Knowledge<\/u><\/h4>\n<pre>The   fundamental  data   structure  within   the  kernel\ncontrolling all processes is the process structure, which\ngrows and shrinks dynamically as processes are forked and\nfinished or killed.\n\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux Command systemd-+-ModemManager&#8212;3*[{ModemManager}] |-NetworkManager&#8212;3*[{NetworkManager}] |-accounts-daemon&#8212;3*[{accounts-daemon}] |-avahi-daemon&#8212;avahi-daemon |-bluetoothd |-colord&#8212;3*[{colord}] |-cron |-cups-browsed&#8212;3*[{cups-browsed}] |-cupsd |-dbus-daemon |-exim4 |-fwupd&#8212;5*[{fwupd}] |-gdm3-+-gdm-session-wor-+-gdm-x-session-+-Xorg&#8212;13*[{Xorg}] | | | |-gnome-session-b-+-ssh-agent | | | | `-4*[{gnome-session-b}] | | | `-3*[{gdm-x-session}] | | `-3*[{gdm-session-wor}] | `-3*[{gdm3}] |-geoclue&#8212;3*[{geoclue}] |-gpm |-nm-dispatcher&#8212;4*[{nm-dispatcher}] |-polkitd&#8212;3*[{polkitd}] |-power-profiles&#8212;-3*[{power-profiles-}] |-rsyslogd&#8212;3*[{rsyslogd}] |-rtkit-daemon&#8212;2*[{rtkit-daemon}] |-sshd |-switcheroo-cont&#8212;3*[{switcheroo-cont}] |-systemd-+-(sd-pam) | |-at-spi-bus-laun-+-dbus-daemon | | `-4*[{at-spi-bus-laun}] | |-at-spi2-registr&#8212;3*[{at-spi2-registr}] | |-dbus-daemon | |-dconf-service&#8212;3*[{dconf-service}] | &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2009\/11\/22\/pstree-process-status-tree\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pstree &#8211;  process status tree&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":-1,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[1051],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5896"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=5896"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}