1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add List Parent pid With ps as a unix til

This commit is contained in:
jbranchaud
2016-10-01 00:17:07 -05:00
parent f8e8bd21a6
commit af32b0ea7d
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
# List Parent pid With ps
The `ps` command, which stands for `process status`, is a great way to find
different processes running on a machine. Information like their `pid`
(_process id_) is included. If you are tracking down a process to kill and
find that that process is an unkillable zombie, then you may need to
simultaneously kill the process' parent as well.
So, you'll need the parent `pid` as well. You can get both the `pid` and the
parent `pid` of a process by including the `-f` flag with `ps`.
You may also want to include the `-e` flag to make sure that information
about other users' processes is included in the results.