TrueTree
About
Read all about the TrueTree concept here
TrueTree is more than just a pstree command for macOS. It is used to display a process tree for current running processes while using a hierarchy built on additoinal pids that can be collected from the operating system. The standard process tree on macOS that can be built with traditional pids and ppids is less than helpful on macOS due to all the XPC communication at play. The vast majority of processes end up having a parent process of launchd. TrueTree however displays a process tree that is meant to be useful to incident responders, threat hunters, researchers, and everything in between!
./TrueTree -h
--nocolor -> Do not color code items in output
--notree -> Do not print tree format. Just print in list format
--timestamps -> Include process timestamps
--standard -> Print the standard Unix tree instead of TrueTree
-o -> output to file
Note: Requires Root
./TrueTree
Displays an enhanced process tree using the TrueTree concept
./TrueTree --standard
For tree output based on standard pids and ppids use --standard
./TrueTree --timestamps
For output in either format with process create time added use the --timestamps option