check all processes running mac terminal code example
Example: terminal show running processes tree mac os
Install pstree with the following command:
brew install pstree
Install pstree with the following command:
brew install pstree