24 Mar 2013

ptree on Linux

While this isn’t a perfect replica, it does work relatively well:

bash> ps axf

This output generates a process tree for everything running on the system, not just a subtree for a specified process, so you are best off piping this to less and searching within. It can be a bit more clunky as a result, but the end result is the same.