码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下如何查看进程准确启动时间

时间:2018-02-09 14:50:30      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:status   als   orm   nbsp   pid   tar   sed   pre   started   

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下如何查看进程准确启动时间

标签:status   als   orm   nbsp   pid   tar   sed   pre   started   

原文地址:https://www.cnblogs.com/shengulong/p/8434561.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!