Pstree

pstree is a Linux command that shows the running processes as a tree. It is used as a more visual alternative to the ps command. The root of the tree is either init or the process with the given pid. It can also be installed in other Unix systems.
In BSD systems, a similar output is created using codice_1, in Linux codice_2 produces similar output.
Examples.
pstree pid
user@host ~$ pstree 1066
pstree username
user@host ~# pstree username
dbus-launch
bash───firefox─┬─6*[{Analysis Helper}]