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"


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.235.85.115
To prevent spam please submit by clicking the kitten: