PGREP(1) General Commands Manual PGREP(1) pgrep, pkill, pidwait - pgrep [ ...] pkill [ ...] pidwait [ ...] pgrep ID $ pgrep -u root sshd sshd root $ pgrep -u root,daemon root daemon pkill SIGTERM pidwait - --signal pgrep pidwait --require-handler -a, --list-full ID pgrep -A, --ignore-ancestors pgreppkill pidwait sudo -c, --count count pkill pidwait -d, --delimiter ID pgrep -e, --echo PID pkill -f, --full -f -F, --pidfile PID pkill pidwait pgrep "-" --pid -g, --pgroup ,... ID 0 pgreppkill pidwait -G, --group gid,... ID -H, --require-handler -i, --ignore-case -l, --list-name ID pgrep -L, --logpidfile pidfile -F -m, --mrelease process_mrelease() -n, --newest -o, --oldest -O, --older -p, --pid pid,... ID --pidfile -P, --parent ppid,... ID -q, --queue pidfd_send_signal(2) sigqueue(3) kill(2) sigaction(2) SA_SIGINFO siginfo_t si_value -Q, --shell-quote shell pgrep -r, --runstates D,R,S,Z,... -s, --session sid,... ID ID 0 pgreppkill pidwait ID -t, --terminal ,... "/dev/" -u, --euid euid,... ID -U, --uid uid,... ID -v, --inverse pgrep pidwait pkill -w, --lightweight pgrep pidwait id pid pkill -x, --exact -f --cgroup ,... (cgroup) v2 cgroups(7) --env [=],... = --ns pid root --nslist --nslist ,... ipcmntnetpiduseruts --quiet pgrep -V, --version -h, --help 1 named ID $ pgrep -u root named 2 syslog $ pkill -HUP syslogd 3 bash $ ps -fp $(pgrep -d, -x bash) 4 chrome nice $ renice +4 $(pgrep chrome) 5 PID $ echo ${PID} | pidwait -F - 0 pkill pidwait 1 2 3 15 /proc/pid/stat -f /proc/pid/cmdline pgreppkill pidwait /proc subset=pid -O --older pkill pidfd_send_signal(2) kill(2) sigqueue(3) -n -o -v tick -n -o tick pidwait pidfd_open(2) Linux 5.3 killall(1), kill(1), ps(1), skill(1), kill(2), sigaction(2), pidfd_open(2), pidfd_send_signal(2), sigqueue(3), cgroups(7), regex(7), signal(7) procps-ng 2025-12-29 PGREP(1)