[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) |