Start time of a Linux process

I needed to find the start time of a Linux process. Luckily the kernel tracks all that for you in /proc. Look at the ctime of the directory for the pid you want,

stat -c %Z /proc/15237

You can also use ps to get the same information, but then you have to parse/scrape the ps output.

ps -p 12345 -o "%t"
Leave A Reply
All content licensed under the Creative Commons License