In my case, [user@localhost] $ pstree -s $pid show this: init─┬─NetworkManager─┬─dhclient │ ├─dnsmasq │ └─2*[{NetworkManager}] ├─accounts-daemon───{accounts-daemon} ├─acpid ├─atd ├─avahi-daemon───avahi-daemon ├─bamfdaemon───2*[{bamfdaemon}] ├─bluetoothd ├─chrome─┬─chrome │ ├─chrome───4*[{chrome}] │ └─27*[{chrome}] ├─chrome-sandbox───chrome─┬─5*[chrome───3*[{chrome}]] │ └─nacl_helper_boo ├─colord───2*[{colord}] ├─console-kit-dae─┬─63*[{console-kit-dae}] │ └─{console-kit-dae}\264k\267 ├─cron ├─cupsd ├─3*[dbus-daemon] ├─2*[dbus-launch] ├─dconf-service───2*[{dconf-service}] ├─gconfd-2 ├─geoclue-master ├─6*[getty] ├─gnome-keyring-d─┬─4*[{gnome-keyring-d}] │ └─{gnome-keyring-d}\264k\267 ├─gnome-terminal─┬─bash───pstree │ ├─gnome-pty-helpe │ └─3*[{gnome-terminal}] ├─goa-daemon───{goa-daemon} ├─gvfs-afc-volume───{gvfs-afc-volume} ├─gvfs-fuse-daemo───3*[{gvfs-fuse-daemo}] ├─gvfs-gdu-volume ├─gvfs-gphoto2-vo ├─gvfsd ├─gvfsd-burn ├─gvfsd-metadata ├─gvfsd-trash ├─hud-service───2*[{hud-service}] ├─indicator-appli───{indicator-appli} ├─indicator-datet─┬─{indicator-datet} │ └─{indicator-datet}\264k\267 ├─indicator-messa───{indicator-messa}\264k\267 ├─indicator-print───2*[{indicator-print}] ├─indicator-sessi─┬─{indicator-sessi} │ └─{indicator-sessi}\264k\267 ├─indicator-sound─┬─{indicator-sound} │ └─{indicator-sound}\264k\267 ├─irqbalance ├─lightdm─┬─Xorg │ ├─lightdm─┬─gnome-session─┬─bluetooth-apple─┬─{bluetooth-apple} │ │ │ │ └─{bluetooth-apple}\264k\267 │ │ │ ├─deja-dup-monito─┬─{deja-dup-monito} │ │ │ │ └─{deja-dup-monito}\264k\267 │ │ │ ├─gdu-notificatio───2*[{gdu-notificatio}] │ │ │ ├─gnome-fallback-─┬─{gnome-fallback-} │ │ │ │ └─{gnome-fallback-}\264k\267 │ │ │ ├─gnome-screensav───2*[{gnome-screensav}] │ │ │ ├─gnome-settings-─┬─syndaemon │ │ │ │ └─3*[{gnome-settings-}] │ │ │ ├─gpg-agent │ │ │ ├─metacity───2*[{metacity}] │ │ │ ├─nautilus───2*[{nautilus}] │ │ │ ├─nm-applet───2*[{nm-applet}] │ │ │ ├─polkit-gnome-au─┬─{polkit-gnome-au} │ │ │ │ └─{polkit-gnome-au}\264k\267 │ │ │ ├─python─┬─redshift │ │ │ │ └─3*[{python}] │ │ │ ├─ssh-agent │ │ │ ├─telepathy-indic─┬─{telepathy-indic} │ │ │ │ └─{telepathy-indic}\264k\267 │ │ │ ├─unity-2d-panel───2*[{unity-2d-panel}] │ │ │ ├─unity-2d-shell───5*[{unity-2d-shell}] │ │ │ ├─update-notifier───3*[{update-notifier}] │ │ │ └─3*[{gnome-session}] │ │ └─{lightdm} │ └─2*[{lightdm}] ├─mission-control─┬─{mission-control} │ └─{mission-control}\264k\267 ├─modem-manager ├─notify-osd───2*[{notify-osd}] ├─polkitd───{polkitd} ├─pulseaudio─┬─gconf-helper │ └─2*[{pulseaudio}] ├─rsyslogd───3*[{rsyslogd}] ├─rtkit-daemon───2*[{rtkit-daemon}] ├─sh───dpkg-preconfigu─┬─dpkg-preconfigu │ ├─hddtemp.config. │ └─whiptail ├─system-service- ├─ubuntu-geoip-pr ├─ubuntuone-syncd───3*[{ubuntuone-syncd}] ├─udevd───udevd ├─udisks-daemon─┬─udisks-daemon │ └─2*[{udisks-daemon}] ├─unity-applicati───2*[{unity-applicati}] ├─unity-files-dae─┬─{unity-files-dae} │ └─{unity-files-dae}\264k\267 ├─unity-lens-vide───{unity-lens-vide} ├─unity-music-dae───{unity-music-dae}\264k\267 ├─unity-musicstor───{unity-musicstor} ├─unity-panel-ser───2*[{unity-panel-ser}] ├─unity-scope-vid─┬─{unity-scope-vid} │ └─{unity-scope-vid}\264k\267 ├─upowerd───2*[{upowerd}] ├─upstart-socket- ├─upstart-udev-br ├─whoopsie───{whoopsie} ├─wpa_supplicant ├─zeitgeist-daemo───{zeitgeist-daemo} ├─zeitgeist-datah───{zeitgeist-datah} └─zeitgeist-fts─┬─cat └─{zeitgeist-fts}
In my case, NetworkManager─ ┬─dhclient nager}] accounts- daemon─ ──{accounts- daemon} avahi-daemon─ ──avahi- daemon bamfdaemon─ ──2*[{bamfdaemo n}] chrome─ ┬─chrome ──4*[{chrome} ] chrome- sandbox─ ──chrome─ ┬─5*[chrome─ ──3*[{chrome} ]] colord─ ──2*[{colord} ] console- kit-dae─ ┬─63*[{ console- kit-dae} ] kit-dae} \264k\267 3*[dbus- daemon] 2*[dbus- launch] dconf-service─ ──2*[{dconf- service} ] geoclue- master gnome-keyring- d─┬─4*[ {gnome- keyring- d}] keyring- d}\264k\ 267 gnome-terminal─ ┬─bash─ ──pstree terminal} ] goa-daemon─ ──{goa- daemon} gvfs-afc- volume─ ──{gvfs- afc-volume} gvfs-fuse- daemo── ─3*[{gvfs- fuse-daemo} ] gvfs-gdu- volume gvfs-gphoto2- vo gvfsd-metadata hud-service─ ──2*[{hud- service} ] indicator- appli── ─{indicator- appli} indicator- datet─┬ ─{indicator- datet} datet}\ 264k\267 indicator- messa── ─{indicator- messa}\ 264k\267 indicator- print── ─2*[{indicator- print}] indicator- sessi─┬ ─{indicator- sessi} sessi}\ 264k\267 indicator- sound─┬ ─{indicator- sound} sound}\ 264k\267 lightdm─ ┬─Xorg ┬─gnome- session─ ┬─bluetooth- apple─┬ ─{bluetooth- apple} apple}\ 264k\267 dup-monito─ ┬─{deja- dup-monito} dup-monito} \264k\267 io───2* [{gdu-notificat io}] fallback- ─┬─{gnome- fallback- } fallback- }\264k\ 267 screensav─ ──2*[{gnome- screensav} ] settings- ─┬─syndaemon settings- }] ──2*[{metacity} ] ──2*[{nautilus} ] ──2*[{nm- applet} ] gnome-au─ ┬─{polkit- gnome-au} gnome-au} \264k\267 indic─┬ ─{telepathy- indic} indic}\ 264k\267 2d-panel─ ──2*[{unity- 2d-panel} ] 2d-shell─ ──5*[{unity- 2d-shell} ] notifier─ ──3*[{update- notifier} ] session} ] mission- control─ ┬─{mission- control} control} \264k\267 modem-manager notify- osd───2* [{notify- osd}] polkitd─ ──{polkitd} pulseaudio─ ┬─gconf- helper rsyslogd─ ──3*[{rsyslogd} ] rtkit-daemon─ ──2*[{rtkit- daemon} ] sh───dpkg- preconfigu─ ┬─dpkg- preconfigu system- service- ubuntu- geoip-pr ubuntuone- syncd── ─3*[{ubuntuone- syncd}] udevd── ─udevd udisks- daemon─ ┬─udisks- daemon daemon} ] unity-applicati ───2*[{ unity-applicati }] unity-files- dae─┬─{ unity-files- dae} files-dae} \264k\267 unity-lens- vide─── {unity- lens-vide} unity-music- dae───{ unity-music- dae}\264k\ 267 unity-musicstor ───{unity- musicstor} unity-panel- ser───2* [{unity- panel-ser} ] unity-scope- vid─┬─{ unity-scope- vid} scope-vid} \264k\267 upowerd─ ──2*[{upowerd} ] upstart- socket- upstart- udev-br whoopsie─ ──{whoopsie} wpa_supplicant zeitgeist- daemo── ─{zeitgeist- daemo} zeitgeist- datah── ─{zeitgeist- datah} zeitgeist- fts─┬─cat
└─{zeitgeist- fts}
[user@localhost] $ pstree -s $pid
show this:
init─┬─
│ ├─dnsmasq
│ └─2*[{NetworkMa
├─
├─acpid
├─atd
├─
├─
├─bluetoothd
├─
│ ├─chrome─
│ └─27*[{chrome}]
├─
│ └─nacl_helper_boo
├─
├─
│ └─{console-
├─cron
├─cupsd
├─
├─
├─
├─gconfd-2
├─
├─6*[getty]
├─
│ └─{gnome-
├─
│ ├─gnome-pty-helpe
│ └─3*[{gnome-
├─
├─
├─
├─
├─
├─gvfsd
├─gvfsd-burn
├─
├─gvfsd-trash
├─
├─
├─
│ └─{indicator-
├─
├─
├─
│ └─{indicator-
├─
│ └─{indicator-
├─irqbalance
├─
│ ├─lightdm─
│ │ │ │ └─{bluetooth-
│ │ │ ├─deja-
│ │ │ │ └─{deja-
│ │ │ ├─gdu-notificat
│ │ │ ├─gnome-
│ │ │ │ └─{gnome-
│ │ │ ├─gnome-
│ │ │ ├─gnome-
│ │ │ │ └─3*[{gnome-
│ │ │ ├─gpg-agent
│ │ │ ├─metacity─
│ │ │ ├─nautilus─
│ │ │ ├─nm-applet─
│ │ │ ├─polkit-
│ │ │ │ └─{polkit-
│ │ │ ├─python─┬─redshift
│ │ │ │ └─3*[{python}]
│ │ │ ├─ssh-agent
│ │ │ ├─telepathy-
│ │ │ │ └─{telepathy-
│ │ │ ├─unity-
│ │ │ ├─unity-
│ │ │ ├─update-
│ │ │ └─3*[{gnome-
│ │ └─{lightdm}
│ └─2*[{lightdm}]
├─
│ └─{mission-
├─
├─
├─
├─
│ └─2*[{pulseaudio}]
├─
├─
├─
│ ├─hddtemp.config.
│ └─whiptail
├─
├─
├─
├─
├─
│ └─2*[{udisks-
├─
├─
│ └─{unity-
├─
├─
├─
├─
├─
│ └─{unity-
├─
├─
├─
├─
├─
├─
├─
└─