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

来源:互联网 发布:centos 高可用 编辑:程序博客网 时间:2024/04/29 12:21
-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

0 0
原创粉丝点击