1. 程式人生 > >Linux下如何查看進程準確啟動時間

Linux下如何查看進程準確啟動時間

grep started lap 如何 pan linux下 and done gin

ps:process status

for pid in $(pgrep httpd); do echo -n "${pid} " ; ps -p ${pid} -o lstart | grep -v "START" ; done

ps -eo pid,lstart,etime,cmd | grep nginx

       lstart      STARTED   time the command started.  See also bsdstart, start, start_time, and stime.
       etime       ELAPSED   elapsed time since the process was started, in the form [[DD-]hh:]mm:ss.

Linux下如何查看進程準確啟動時間