Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Activity Monitor lists how much CPU time a process has used over its lifetime, but is there a way to find out the date and time a process was started?

I'm curious because my Firefox hasn't updated for about a month because it hasn't been restarted. My machine uptime is about a month.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Use ps -o etime:

$ ps -o etime $(pgrep -x Finder)
    ELAPSED
01-22:18:51
$ ps -axco etime,command | grep Finder
01-22:19:00 Finder

01- = 1 day.

share|improve this answer
add comment

From the command line, ps -f <pid> seems to do the trick, although it only shows the date and not the time for an old process. There's probably an arcane flag to make the column wider.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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