How to get the start time of a long-running Linux process?

后端 未结 6 1439
醉梦人生
醉梦人生 2020-12-07 06:49

Is it possible to get the start time of an old running process? It seems that ps will report the date (not the time) if it wasn\'t started today, and only the y

6条回答
  •  余生分开走
    2020-12-07 07:32

    ls -ltrh /proc | grep YOUR-PID-HERE
    

    For example, my Google Chrome's PID is 11583:

    ls -l /proc | grep 11583
    dr-xr-xr-x  7 adam       adam                     0 2011-04-20 16:34 11583
    

提交回复
热议问题