I tried ps
with different kinds of switches e.g. -A
, aux
, ef
, and so forth but I cannot seem to find the right combination of switches that will tell me the Process ID (PID), Parent Process ID (PPID), Process Group ID (PGID), and the Session ID (SID) of a process in the same output.
‘ps’ arguments to display PID, PPID, PGID, and SID collectively
processps
Best Answer
Here you go:
If you want to see the process' name as well, use this: