Chinaunix首页 | 论坛 | 博客
  • 博客访问: 441080
  • 博文数量: 126
  • 博客积分: 35
  • 博客等级: 民兵
  • 技术积分: 1262
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-19 16:39
文章分类

全部博文(126)

文章存档

2017年(2)

2016年(20)

2015年(64)

2014年(24)

2013年(16)

我的朋友

分类: LINUX

2013-12-09 15:41:51

[linl@ log]# ps -eo pid,lstart,cmd|head
  PID                  STARTED CMD
    1 Thu Aug  4 15:45:32 2011 init [5]         
    2 Thu Aug  4 15:45:33 2011 [migration/0]
    3 Thu Aug  4 15:45:33 2011 [ksoftirqd/0]
    4 Thu Aug  4 15:45:33 2011 [watchdog/0]
    5 Thu Aug  4 15:45:33 2011 [migration/1]
    6 Thu Aug  4 15:45:33 2011 [ksoftirqd/1]
    7 Thu Aug  4 15:45:33 2011 [watchdog/1]
    8 Thu Aug  4 15:45:33 2011 [migration/2]
    9 Thu Aug  4 15:45:33 2011 [ksoftirqd/2]

-e 显示所有进程,跟-A一样
-o 使用自定义的格式

pid        PID      process ID number of the process.
lstart     STARTED  time the command started.
cmd        CMD      see args. (alias args, command).
args       COMMAND  command with all its arguments as a string. Modifications to the arguments may be shown. The
                    output in this column may contain spaces. A process marked is partly dead, waiting to be
                    fully destroyed by its parent. Sometimes the process args will be unavailable; when this happens,
                    ps will instead print the executable name in brackets. (alias cmd, command). See also the comm
                    format keyword, the -f option, and the c option.
                    When specified last, this column will extend to the edge of the display. If ps can not determine
                    display width, as when output is redirected (piped) into a file or another command, the output
                    width is undefined. (it may be 80, unlimited, determined by the TERM variable, and so on) The
                    COLUMNS environment variable or --cols option may be used to exactly determine the width in this
                    case. The w or -w option may be also be used to adjust width.




阅读(1517) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~