I killed a process by process ID accidentally, but now I need to know the process name.I checked the id number under folder /proc,but I got anything. how can I know the process name please.

  • 3
    there's no way to find it. Nov 8 '17 at 23:27
  • 1
    there may be logs, assuming the process in question was writing it's pid to a logfile somewhere somehow. probably not, though
    – thrig
    Nov 8 '17 at 23:42

There is no standard mechanism in Linux to discover the name of a deleted process.


While there is no map of every pid used or log of all of them any logs to journald contain a pid so if it was a daemon you can check for it with:

sudo journalctl _PID=[PID]

note that this only checks logs for the current boot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.