Categories
Linux MAC UNIX

How do you find the parent process? (ps and pstree)

Finding the parent process is pretty simple. Lets say that you do a top and see that httpd has a pid of 3027. Use ps You can easily find its parent process by using the following command(s). $ ps aux -o ppid | grep 3027 | grep -v grep _www 3027 0.0 0.0 2438040 616 […]