您的位置:首页 > 运维架构 > Linux

linux查看进程启动时间、运行多长时间等指定信息

2016-01-28 17:12 696 查看
-e 表示列出所有进行 
-o表示指定要输出的字段
This ps supports AIX format descriptors, which work somewhat like the formatting codes of printf(1) and printf(3). For example, the normal default output can be produced with this:
       ps -eo "%p %y %x %c". The NORMAL codes are described in the next section.

       CODE   NORMAL   HEADER
       %C     pcpu     %CPU
       %G     group    GROUP
       %P     ppid     PPID
       %U     user     USER
       %a     args     COMMAND
       %c     comm     COMMAND
       %g     rgroup   RGROUP
       %n     nice     NI
       %p     pid      PID
       %r     pgid     PGID
       %t     etime    ELAPSED
       %u     ruser    RUSER
       %x     time     TIME
       %y     tty      TTY
       %z     vsz      VSZ
ps -eo lstart 启动时间ps -eo etime  运行多长时间.ps -eo pid,lstart,etime | grep 7659
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: