当前位置: 技术问答>linux和unix
请问unix的ps命令返回的是个什么列表?谢谢!
来源: 互联网 发布时间:2016-08-29
本文导语: ps -ef | grep ora* 得到 oracle 12300 1 0 13:51:14 ? 0:00 ora_dbw0_openview oracle 7812 1 0 10:07:43 ? 0:00 ora_pmon_orcl oracle 6276 6275 0 09:55:27 pts/3 0:01 /opt/oracle/jre -DORA...
ps -ef | grep ora*
得到
oracle 12300 1 0 13:51:14 ? 0:00 ora_dbw0_openview
oracle 7812 1 0 10:07:43 ? 0:00 ora_pmon_orcl
oracle 6276 6275 0 09:55:27 pts/3 0:01 /opt/oracle/jre -DORACLE_HOME=/opt/or
这每个列代表什么?在网上查了下-f是全格式,但这只有8列。
怎么知道每列代表什么?有什么命令能把这张表的表头打出来吗?-_-
得到
oracle 12300 1 0 13:51:14 ? 0:00 ora_dbw0_openview
oracle 7812 1 0 10:07:43 ? 0:00 ora_pmon_orcl
oracle 6276 6275 0 09:55:27 pts/3 0:01 /opt/oracle/jre -DORACLE_HOME=/opt/or
这每个列代表什么?在网上查了下-f是全格式,但这只有8列。
怎么知道每列代表什么?有什么命令能把这张表的表头打出来吗?-_-
|
你问问题的时候 最好把你是哪个发行版的unix说一下 系统不一样ps出来的结果可能会有点区别
我是CentOS ps -ef 是有表头的 还有要多用man来查看命令的详细信息 man ps
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:56 ? 00:00:00 init [5]
root 2 1 0 18:56 ? 00:00:00 [migration/0]
root 3 1 0 18:56 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 18:56 ? 00:00:00 [watchdog/0]
root 5 1 0 18:56 ? 00:00:00 [events/0]
root 6 1 0 18:56 ? 00:00:00 [khelper]
root 7 1 0 18:56 ? 00:00:00 [kthread]
http://blog.csdn.net/linuxprince/archive/2009/12/28/5090513.aspx
root 10 7 0 18:56 ? 00:00:00 [kblockd/0]
我是CentOS ps -ef 是有表头的 还有要多用man来查看命令的详细信息 man ps
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 18:56 ? 00:00:00 init [5]
root 2 1 0 18:56 ? 00:00:00 [migration/0]
root 3 1 0 18:56 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 18:56 ? 00:00:00 [watchdog/0]
root 5 1 0 18:56 ? 00:00:00 [events/0]
root 6 1 0 18:56 ? 00:00:00 [khelper]
root 7 1 0 18:56 ? 00:00:00 [kthread]
http://blog.csdn.net/linuxprince/archive/2009/12/28/5090513.aspx
root 10 7 0 18:56 ? 00:00:00 [kblockd/0]
|
google man ps solaris
http://docs.sun.com/app/docs/doc/816-0210/6m6nb7mie?a=view
C (f,l)
Processor utilization for scheduling (obsolete). Not printed when the -c option is used.
STIME (f)
The starting time of the process, given in hours, minutes, and seconds. (A process begun more than twenty-four hours before the ps inquiry is executed is given in months and days.)
TTY (all)
The controlling terminal for the process (the message, ?, is printed when there is no controlling terminal).
http://docs.sun.com/app/docs/doc/816-0210/6m6nb7mie?a=view
C (f,l)
Processor utilization for scheduling (obsolete). Not printed when the -c option is used.
STIME (f)
The starting time of the process, given in hours, minutes, and seconds. (A process begun more than twenty-four hours before the ps inquiry is executed is given in months and days.)
TTY (all)
The controlling terminal for the process (the message, ?, is printed when there is no controlling terminal).
|
这个查一下ps命令的使用说明吧