Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?
$ jobs -l | grep JDBC
[15] 20422 Running PDFXCview all.pdf & (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/official/tutorials)
[20] 20542 Running PDFXCview all.pdf & (wd: ~/mydata/dirlinks/cs/SQL/API/JDBC/general/wikipedia)
Similarly, in ps, is it possible to get the previous working directory of each process ?when invoking it
In pgrep, is it possible to search in the pathname (string) of the previous working directory of each process when invoking it, like pgrep ... <pattern_in_working_dir_pathname>?
I would like to search for processes, by keywords in their working directories when invoking them
Thanks.