Process
請解釋 ps -ef 命令的輸出?
該命令的部分輸出
ps -ef
如下所示:UID PID PPID C STIME TTY TIME CMD root 1 0 0 2012 ? 00:00:01 init [3] root 2 1 0 2012 ? 00:00:01 [migration/0] root 3 1 0 2012 ? 00:00:00 [ksoftirqd/0] root 4 1 0 2012 ? 00:00:00 [watchdog/0] root 5 1 0 2012 ? 00:00:00 [events/0] root 6 1 0 2012 ? 00:00:00 [khelper] root 7 1 0 2012 ? 00:00:00 [kthread] root 9 7 0 2012 ? 00:00:00 [xenwatch] root 10 7 0 2012 ? 00:00:00 [xenbus] root 18 7 0 2012 ? 00:00:01 [migration/1] root 19 7 0 2012 ? 00:00:00 [ksoftirqd/1]
"?"
TTY 列中所有行的 是什麼意思?C
和CMD
column 代表什麼?
您可以查看手冊頁
man ps
以了解這些列的含義。ps
例如,Linux聯機幫助頁給出:c C integer value of the processor utilisation percentage. (see %cpu) tname TTY controlling tty (terminal). (alias tt, tty). args COMMAND command with all its arguments as a string. May chop as desired. Modifications to the arguments are not shown. The output in this column may contain spaces. (alias cmd, command) cmd CMD see args. (alias args, command)
如果
TTY
是?
,則表示該程序未與任何使用者終端關聯。