Linux - Discovering a process run in the past

16 Views Asked by At

Suppose that a random process I don’t know its TID,PID and name but I know it starts at time X and ends at time X + 5 seconds... Is there a way to discover the TID, PID, and name of process for instance at time X+6 seconds? I would like to get the same informations given by ps

1

There are 1 best solutions below

0
user17732522 On

The information is not recorded, unless process accounting is enabled, see man 5 acct.

If you enable accounting before the process in question terminates, then you can get the information from the accounting file as explained on the man page.