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