Linux Command

systemd-+-ModemManager---3*[{ModemManager}]
        |-NetworkManager---3*[{NetworkManager}]
        |-accounts-daemon---3*[{accounts-daemon}]
        |-avahi-daemon---avahi-daemon
        |-bluetoothd
        |-colord---3*[{colord}]
        |-cron
        |-cups-browsed---3*[{cups-browsed}]
        |-cupsd
        |-dbus-daemon
        |-exim4
        |-fwupd---5*[{fwupd}]
        |-gdm3-+-gdm-session-wor-+-gdm-x-session-+-Xorg---13*[{Xorg}]
        |      |                 |               |-gnome-session-b-+-ssh-agent
        |      |                 |               |                 `-4*[{gnome-session-b}]
        |      |                 |               `-3*[{gdm-x-session}]
        |      |                 `-3*[{gdm-session-wor}]
        |      `-3*[{gdm3}]
        |-geoclue---3*[{geoclue}]
        |-gpm
        |-nm-dispatcher---4*[{nm-dispatcher}]
        |-polkitd---3*[{polkitd}]
        |-power-profiles----3*[{power-profiles-}]
        |-rsyslogd---3*[{rsyslogd}]
        |-rtkit-daemon---2*[{rtkit-daemon}]
        |-sshd
        |-switcheroo-cont---3*[{switcheroo-cont}]
        |-systemd-+-(sd-pam)
        |         |-at-spi-bus-laun-+-dbus-daemon
        |         |                 `-4*[{at-spi-bus-laun}]
        |         |-at-spi2-registr---3*[{at-spi2-registr}]
        |         |-dbus-daemon
        |         |-dconf-service---3*[{dconf-service}]
        |         |-evolution-addre---6*[{evolution-addre}]
        |         |-evolution-calen---9*[{evolution-calen}]
        |         |-evolution-sourc---4*[{evolution-sourc}]
        |         |-gcr-ssh-agent---2*[{gcr-ssh-agent}]
        |         |-2*[gjs---11*[{gjs}]]
        |         |-gnome-keyring-d---4*[{gnome-keyring-d}]
        |         |-gnome-session-b-+-evolution-alarm---7*[{evolution-alarm}]
        |         |                 |-gnome-software---16*[{gnome-software}]
        |         |                 |-gsd-disk-utilit---3*[{gsd-disk-utilit}]
        |         |                 `-4*[{gnome-session-b}]
        |         |-gnome-session-c---{gnome-session-c}
        |         |-gnome-shell-+-firefox-+-Isolated Servic---20*[{Isolated Servic}]
        |         |             |         |-Isolated Web Co---23*[{Isolated Web Co}]
        |         |             |         |-3*[Isolated Web Co---17*[{Isolated Web Co}]]
        |         |             |         |-3*[Isolated Web Co---18*[{Isolated Web Co}]]
        |         |             |         |-Privileged Cont---18*[{Privileged Cont}]
        |         |             |         |-RDD Process---3*[{RDD Process}]
        |         |             |         |-Socket Process---4*[{Socket Process}]
        |         |             |         |-Utility Process---3*[{Utility Process}]
        |         |             |         |-3*[Web Content---10*[{Web Content}]]
        |         |             |         |-WebExtensions---17*[{WebExtensions}]
        |         |             |         `-182*[{firefox}]
        |         |             |-mutter-x11-fram---14*[{mutter-x11-fram}]
        |         |             `-35*[{gnome-shell}]
        |         |-gnome-shell-cal---6*[{gnome-shell-cal}]
        |         |-gnome-terminal--+-bash---git-+-git---git-remote-http
        |         |                 |            |-git
        |         |                 |            `-{git}
        |         |                 |-bash---pstree
        |         |                 `-5*[{gnome-terminal-}]
        |         |-goa-daemon---4*[{goa-daemon}]
        |         |-goa-identity-se---3*[{goa-identity-se}]
        |         |-gsd-a11y-settin---4*[{gsd-a11y-settin}]
        |         |-gsd-color---4*[{gsd-color}]
        |         |-gsd-datetime---4*[{gsd-datetime}]
        |         |-gsd-housekeepin---4*[{gsd-housekeepin}]
        |         |-gsd-keyboard---4*[{gsd-keyboard}]
        |         |-gsd-media-keys---5*[{gsd-media-keys}]
        |         |-gsd-power---5*[{gsd-power}]
        |         |-gsd-print-notif---3*[{gsd-print-notif}]
        |         |-gsd-printer---3*[{gsd-printer}]
        |         |-gsd-rfkill---3*[{gsd-rfkill}]
        |         |-gsd-screensaver---3*[{gsd-screensaver}]
        |         |-gsd-sharing---4*[{gsd-sharing}]
        |         |-gsd-smartcard---4*[{gsd-smartcard}]
        |         |-gsd-sound---4*[{gsd-sound}]
        |         |-gsd-usb-protect---4*[{gsd-usb-protect}]
        |         |-gsd-wacom---3*[{gsd-wacom}]
        |         |-gsd-xsettings---4*[{gsd-xsettings}]
        |         |-gvfs-afc-volume---4*[{gvfs-afc-volume}]
        |         |-gvfs-goa-volume---3*[{gvfs-goa-volume}]
        |         |-gvfs-gphoto2-vo---3*[{gvfs-gphoto2-vo}]
        |         |-gvfs-mtp-volume---3*[{gvfs-mtp-volume}]
        |         |-gvfs-udisks2-vo---4*[{gvfs-udisks2-vo}]
        |         |-gvfsd-+-gvfsd-dnssd---3*[{gvfsd-dnssd}]
        |         |       |-gvfsd-network---4*[{gvfsd-network}]
        |         |       |-gvfsd-trash---4*[{gvfsd-trash}]
        |         |       `-3*[{gvfsd}]
        |         |-gvfsd-fuse---6*[{gvfsd-fuse}]
        |         |-gvfsd-metadata---3*[{gvfsd-metadata}]
        |         |-ibus-daemon-+-ibus-dconf---4*[{ibus-dconf}]
        |         |             |-ibus-engine-sim---3*[{ibus-engine-sim}]
        |         |             |-ibus-extension----4*[{ibus-extension-}]
        |         |             `-3*[{ibus-daemon}]
        |         |-ibus-portal---3*[{ibus-portal}]
        |         |-ibus-x11---3*[{ibus-x11}]
        |         |-jackdbus
        |         |-2*[pipewire---2*[{pipewire}]]
        |         |-pipewire-pulse---2*[{pipewire-pulse}]
        |         |-sd_dummy---2*[{sd_dummy}]
        |         |-sd_espeak-ng---{sd_espeak-ng}
        |         |-speech-dispatch---4*[{speech-dispatch}]
        |         |-tracker-miner-f---7*[{tracker-miner-f}]
        |         |-wireplumber---5*[{wireplumber}]
        |         |-xdg-desktop-por---6*[{xdg-desktop-por}]
        |         |-xdg-desktop-por---14*[{xdg-desktop-por}]
        |         |-xdg-desktop-por---4*[{xdg-desktop-por}]
        |         |-xdg-document-po-+-fusermount3
        |         |                 `-6*[{xdg-document-po}]
        |         `-xdg-permission----3*[{xdg-permission-}]
        |-systemd-hostnam
        |-systemd-journal
        |-systemd-logind
        |-systemd-timesyn---{systemd-timesyn}
        |-systemd-udevd
        |-udisksd---5*[{udisksd}]
        |-unattended-upgr---{unattended-upgr}
        |-upowerd---3*[{upowerd}]
        `-wpa_supplicant

Explanation

pstree  shows running processes  as a  tree. The  tree is
rooted at either pid or init if pid is omitted. If a user
name is specified, all  process trees rooted at processes
owned by that user are shown.

Related Source Code Exposition
static void free_buffers()
{
if (width != NULL) {
free(width);
width = NULL;
}
if (more != NULL) {
free(more);
more = NULL;
}
capacity = 0;
}

 

Source Code Highlight

Frees any buffers allocated by ensure_buffer_capacity.

 

Featured Image

Related Knowledge

The   fundamental  data   structure  within   the  kernel
controlling all processes is the process structure, which
grows and shrinks dynamically as processes are forked and
finished or killed.