简体   繁体   English

如何使用procps-3.2.8列出所有正在运行的进程?

[英]how to use procps-3.2.8 in listing all the running processes?

Does anyone know how to use procps-3.2.8 in listing all the running processes of ubuntu/linux? 有谁知道如何使用procps-3.2.8列出ubuntu / linux的所有正在运行的进程? And how to kill them using procps-3.2.8? 以及如何使用procps-3.2.8杀死它们?

please provide the step-by-step procedure and provide useful links about procps . 请提供分步过程,并提供有关procps的有用链接。

procps is the package which contains the many command line utility provided. procps是包含提供的许多命令行实用程序的软件包。 You can find the complete information about each utility option under the procpcs from the below location: 您可以从以下位置的procpcs下找到有关每个实用程序选项的完整信息:

On the homepage we can get the following information about procps : 在主页上,我们可以获得有关procps的以下信息:

procps is the package that has a bunch of small useful utilities that give information about processes using the /proc filesystem. procps是具有许多小实用工具的软件包,这些实用工具可提供有关使用/ proc文件系统的进程的信息。 The package includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill. 该软件包包括程序ps,top,vmstat,w,kill,free,slabtop和skill。 * *

http://www.linuxfromscratch.org/lfs/view/7.2/chapter06/procps.html http://www.linuxfromscratch.org/lfs/view/7.2/chapter06/procps.html

http://procps.sourceforge.net/ http://procps.sourceforge.net/

How to use procps-3.2.8 in listing all the running processes? 如何在列出所有正在运行的进程时使用procps-3.2.8?

ps is the part of procps package and there are numerous ways to list the all running process(For detailed information do man ps ). psprocps软件包的一部分,有很多方法可以列出所有正在运行的进程(有关详细信息,请参阅man ps )。

mantosh@mantosh4u:~/practice$ ps -V
procps version 3.2.8
mantosh@mantosh4u:~/practice$ ps -AF
UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
root         1     0  0  6143  2544   3 14:38 ?        00:00:00 /sbin/init
root         2     0  0     0     0   1 14:38 ?        00:00:00 [kthreadd]
.............................................................................
root      3320     2  0     0     0   0 15:13 ?        00:00:00 [kworker/u:2]
root      3334     2  0     0     0   1 15:18 ?        00:00:00 [kworker/1:0]

How to kill them using procps-3.2.8? 如何使用procps-3.2.8杀死它们?

pkill is part of procps package which contains numerous command line option to kill a process. pkillprocps软件包的一部分, 软件包包含许多用于杀死进程的命令行选项。 For detailed information man pkill on your terminal. 有关详细信息,请在您的终端上使用pkill

mantosh@mantosh4u:~/practice$ pkill -V
pkill (procps version 3.2.8)
mantosh@mantosh4u:~/practice$ pkill -f gedit

In the above example, the gedit was the process name which has been killed. 在上面的示例中, gedit是已被终止的进程名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 PHP 列出服务器上所有正在运行的进程 - Listing all running processes on server using PHP 如何在计划程序模拟中使用的所有正在运行的进程上记录数据? - How to log data on all running processes to use in scheduler simulation? 如何静态编译ps(procps) - How to static compile ps(procps) Linux:列出从磁盘上不再存在的可执行文件运行的所有正在运行的进程吗? - Linux: Listing all of the running processes that were run from executables that no longer exist on disk? 如何使用 C 程序查看所有正在运行的进程? - How to see all running processes with a C program? 列出主进程的所有父进程 - Listing all the parent processes of the main process Unix:如何修改和重定向所有正在运行的进程的标准输出 - Unix : How to modify and redirect stdout of all running processes 如何使用 Trap 停止所有后台进程(正在运行的函数)? - How to stop all background processes(running functions) by using Trap? 如何使用Java获取Linux和Solaris上所有正在运行的进程的列表? - How to get a list of all running processes on Linux and Solaris with Java? 如何使正在运行的函数及其所有子进程在Linux上超时? - How to timeout a running function and all it's child processes on Linux?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM