pidof
Get the ID of a process using its name. See also:
pgrep. More information: https://manned.org/pidof.
- List all process IDs with given name:
pidof
- List a single process ID with given name:
pidof -s
- List process IDs including scripts with given name:
pidof -x
- Kill all processes with given name:
kill $(pidof )
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
