系统进程管理工具-psmisc


从proc虚拟文件系统中提取相关的(进程)运行信息,包含以下这些工具:
fuser:显示使用指定文件或者文件系统的进程的PID(reports the PIDs of processes that use the given files or filesystems or sockets.)
killall:杀死某个名字的进程,它向运行指定命令的所有进程发出信号(kills processes by name. It sends a signal to all processes running any of the given commands. e.g. "killall -HUP named")
pstree:树型显示当前运行的进程(displays running processes as a tree.)
pidof:reports the PIDs of the given programs. (Not this pidof program is used, however, but the one from Sysvinit.)
pslog:prints log path(s) of a process
prtstat:print the contents of /proc/<pid>/stat
peekfd:shows the data traveling over a file descriptor.
killall
killall用于杀死指定名字的进程(kill processes by name)。我们可以使用kill命令杀死指定进程PID的进程,如果要找到我们需要杀死的进程,我们还需要在之前使用ps等命令再配合grep来查找进程,而killall把这两个过程合二为一。
格式:killall [command-name]
其它相关的工具集
Linux-ToolKit-procps
proc文件系统工具-procps
最新版本:
项目主页:https://gitlab.com/psmisc
fuser:显示使用指定文件或者文件系统的进程的PID(reports the PIDs of processes that use the given files or filesystems or sockets.)
killall:杀死某个名字的进程,它向运行指定命令的所有进程发出信号(kills processes by name. It sends a signal to all processes running any of the given commands. e.g. "killall -HUP named")
pstree:树型显示当前运行的进程(displays running processes as a tree.)
pidof:reports the PIDs of the given programs. (Not this pidof program is used, however, but the one from Sysvinit.)
pslog:prints log path(s) of a process
prtstat:print the contents of /proc/<pid>/stat
peekfd:shows the data traveling over a file descriptor.
killall
killall用于杀死指定名字的进程(kill processes by name)。我们可以使用kill命令杀死指定进程PID的进程,如果要找到我们需要杀死的进程,我们还需要在之前使用ps等命令再配合grep来查找进程,而killall把这两个过程合二为一。
格式:killall [command-name]
其它相关的工具集
Linux-ToolKit-procps
proc文件系统工具-procps
最新版本:
项目主页:https://gitlab.com/psmisc