Either I cannot correctly tell about my search, or it is not easy to find the answer, but I am trying to figure out how to list all my PID objects of the background task. For example:
So far, I have found that to list the last PID that we use:
$!
But now I want to specify the PID of the task before this (if it exists), but I can not find how to do it. Ulimitly I want to list all my PIDs of the source tasks.
I know that we can also find the last job id with:
%% (last job in list)
%1 (first job in list)
%2 (second job in list)
But does the same not seem to work for the process id?
Thanks everyone :)
source
share