检查进程何时在 OS X 上启动

Pot*_*ter 2 time process macos

活动监视器列出了进程在其生命周期中使用了多少 CPU 时间,但有没有办法找出进程启动的日期和时间?

我很好奇,因为我的 Firefox 大约一个月没有更新,因为它没有重新启动。我的机器正常运行时间大约是一个月。

Lri*_*Lri 5

使用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
Run Code Online (Sandbox Code Playgroud)

01- = 1 天。