How to display running processes along with command line arguments in Linux or Unix

Fig.02: Display running processes along with command line arguments

Fig.02: Display running processes along with command line arguments

The syntax is as follows to see a tree of processes including command line args:
$ pstress -a
Sample outputs:

systemd
  |-accounts-daemon
  |   |-{gdbus}
  |   `-{gmain}
  |-acpid
  |-apt.systemd.dai /usr/lib/apt/apt.systemd.daily
  |   `-unattended-upgr /usr/bin/unattended-upgrade
  |       `-http
  |-atd -f
  |-atop -a -w /var/log/atop/atop_20170208 600
  |-cgmanager -m name=systemd
  |-cron -f
  |-dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  |-dnsmasq -s lxd -S /lxd/ -u lxd --strict-order --bind-interfaces --pid-file=/run/lxd-bridge//dnsmasq.pid --dhcp-no-override --except-interface=lo --interface=lxdbr0...
  |-dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
  |   `-dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
  |-haveged --Foreground --verbose=1 -w 1024
  |-irqbalance --pid=/var/run/irqbalance.pid
  |-iscsid
  |-iscsid
  |-libvirtd
  |   `-15*[{libvirtd}]
  |-login --      
  |   `-bash
  |-lvmetad -f
  |-lxcfs /var/lib/lxcfs/
  |   `-3*[{lxcfs}]
  |-lxd --group lxd --logfile=/var/log/lxd/lxd.log
  |   `-22*[{lxd}]
  |-lxd
  |   `-systemd
  |       |-accounts-daemon
  |       |   |-{gdbus}
  |       |   `-{gmain}
  |       |-agetty --noclear --keep-baud console 115200 38400 9600 linux
  |       |-atd -f
  |       |-cron -f
  |       |-dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  |       |-dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
  |       |-lighttpd -D -f /etc/lighttpd/lighttpd.conf
  |       |-memcached -m 64 -p 11211 -u memcache -l 127.0.0.1
  |       |   `-5*[{memcached}]
  |       |-mysqld_safe /usr/bin/mysqld_safe
  |       |   |-logger -t mysqld -p daemon error
  |       |   `-mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid...
  |       |       `-23*[{mysqld}]
  |       |-php-fpm7.0                      
  |       |   |-php-fpm7.0                                                            
  |       |   `-php-fpm7.0                                                            
  |       |-polkitd --no-debug
  |       |   |-{gdbus}
  |       |   `-{gmain}
  |       |-rsyslogd -n
  |       |   |-{in:imuxsock}
  |       |   `-{rs:main Q:Reg}
  |       |-snapd
  |       |   `-7*[{snapd}]
  |       |-sshd -D
  |       |-systemd-journal
  |       |-systemd-logind
  |       `-systemd-udevd
  |-lxd
  |   `-systemd
  |       |-agetty --noclear --keep-baud console 115200,38400,9600 linux
  |       |-agetty --noclear tty2 linux
  |       |-agetty --noclear tty1 linux
  |       |-agetty --noclear tty4 linux
  |       |-agetty --noclear tty3 linux
  |       |-dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
  |       |-dhclient -H fedora24-c1 -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid eth0
  |       |-rsyslogd -n
  |       |   |-{in:imjournal}
  |       |   `-{rs:main Q:Reg}
  |       |-systemd-journal
  |       `-systemd-logind
  |-lxd
  |   `-init  
  |       |-dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
  |       `-getty 38400 console
  |-lxd
  |   `-systemd
  |       |-agetty --noclear --keep-baud console 115200 38400 9600 linux
  |       |-dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  |       |-dhclient -H cenots-db -1 -q -lf /var/lib/dhclient/dhclient--eth0.lease -pf /var/run/dhclient-eth0.pid eth0
  |       |-ntpd -s
  |       |-ntpd       
  |       |   `-ntpd       
  |       |-rsyslogd -n
  |       |   |-{in:imjournal}
  |       |   `-{rs:main Q:Reg}
  |       |-sshd
  |       |-systemd-journal
  |       |-systemd-logind
  |       `-systemd-udevd
  |-mdadm --monitor --pid-file /run/mdadm/monitor.pid --daemonise --scan --syslog
  |-nginx
  |   |-nginx                           
  |   |-nginx                           
  |   |-nginx                           
  |   |-nginx                           
  |   |-nginx                           
  |   |-nginx                           
  |   |-nginx                           
  |   `-nginx                           
  |-polkitd --no-debug
  |   |-{gdbus}
  |   `-{gmain}
  |-qemu-system-x86 -enable-kvm -name freebsd -S -machine pc-i440fx-xenial,accel=kvm,usb=off -cpu IvyBridge -m 2048 -realtime mlock=off -smp...
  |   `-3*[{qemu-system-x86}]
  |-rngd -r /dev/hwrng
  |-rsyslogd -n
  |   |-{in:imklog}
  |   |-{in:imuxsock}
  |   `-{rs:main Q:Reg}
  |-snapd
  |   `-7*[{snapd}]
  |-sshd -D
  |   `-sshd  
  |       `-sshd   
  |           `-bash
  |               `-pstree -A -a
  |-sudo ./corefreqd
  |   `-corefreqd-mgr
  |       |-{corefreqd-kill}
  |       |-{corefreqd/0}
  |       |-{corefreqd/1}
  |       |-{corefreqd/2}
  |       |-{corefreqd/3}
  |       |-{corefreqd/4}
  |       |-{corefreqd/5}
  |       |-{corefreqd/6}
  |       `-{corefreqd/7}
  |-systemd --user
  |   `-(sd-pam)  
  |-systemd-journal
  |-systemd-logind
  |-systemd-timesyn
  |   `-{sd-resolve}
  |-systemd-udevd
  |-tclsh /usr/bin/i8kmon --daemon --nouserconfig --auto
  |   `-{tclsh}
  |-virtlockd
  |   `-{virtlockd}
  |-virtlogd
  |   `-{virtlogd}
  `-zed -F

Examples and usage: Linux/Unix: pstree Command Examples: See A Tree Of Processes