The pstree command can be used on a Linux system to trace the lineage of each child process.
The pstree command shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown.