pgrep, pkill - look up or signal processes based on name and other attributes 根据名称和其它属性来查找进程 pgrep: -U UID 仅显示以指定用户身份运行的进程 pgrep -U root -G GID 仅显示以指定用户组的身份运行的进程 -l :显示PID和进程名 pgrep -l mysql [root@node1 ~]# pgrep -l mongod 11594 mongod pkill [root@no…
ps report a snapshot of the current processes. 能提供一份当前进程的快照,以列表的形式显示正在运行的进程. 列出进程的数量取决于命令所附加的参数,例如:ps –A 命令列出所有进程和它们相应的PID. # ps aux | less //翻页显示所有进程("page down" key) # ps -ef | more //逐行显示所有进程("enter" key) # ps -A 或 # ps -e //查看系统中的每…
https://gitlab.com/procps-ng/procps free - Report the amount of free and used memory in the system kill - Send a signal to a process based on PID pgrep - List processes based on name or other attributes pkill - Send a signal to a process based on nam…
ps命令 report a snapshot of the current processes. 能提供一份当前进程的快照,以列表的形式显示正在运行的进程. 列出进程的数量取决于命令所附加的参数,例如:ps –A 命令列出所有进程和它们相应的PID. # ps aux | less //翻页显示所有进程("page down" key) # ps -ef | more //逐行显示所有进程("enter" key) # ps -A 或 # ps -e //查看系统中…
介绍Linux进程查看及管理的工具:pstree, ps, pidof, pgrep, top, htop, glance, pmap, vmstat, dstat, kill, pkill, job, bg, fg, nohup 一. pstree命令: pstree - display a tree of processes 二. ps: process state, report a snapshot of the current p…