bash 来自 ps 的列的含义

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13012265/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 03:36:37  来源:igfitidea点击:

Meaning of columns from ps

linuxbashps

提问by joe

In Linux bash, what do the four columns mean from ps?

在 Linux bash 中,这四列是什么意思ps

e.g

例如

PID   TTY         TIME CMD
15286 pts/498 00:00:00 bash
30887 pts/498 00:00:00 ps

回答by chrisaycock

From the manpage:

man页面:

It displays the process ID (pid=PID), the terminal associated with the process (tname=TTY), the cumulated CPU time in [dd-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD).

它显示进程 ID (pid=PID)、与进程关联的终端 (tname=TTY)、[dd-]hh:mm:ss 格式的累积 CPU 时间 (time=TIME) 和可执行文件名称 (ucmd =CMD)。