version 1.5, 2005/03/27 20:56:47 |
version 1.6, 2005/07/16 11:48:46 |
|
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm pgrep |
.Nm pgrep |
.Op Fl flnvx |
.Op Fl flnvx |
.Op Fl G Ar gid |
|
.Op Fl P Ar ppid |
|
.Op Fl U Ar uid |
|
.Op Fl d Ar delim |
.Op Fl d Ar delim |
|
.Op Fl G Ar gid |
.Op Fl g Ar pgrp |
.Op Fl g Ar pgrp |
|
.Op Fl P Ar ppid |
.Op Fl s Ar sid |
.Op Fl s Ar sid |
.Op Fl t Ar tty |
.Op Fl t Ar tty |
|
.Op Fl U Ar uid |
.Op Fl u Ar euid |
.Op Fl u Ar euid |
.Op Ar pattern Op ... |
.Op Ar pattern ... |
.Nm pkill |
.Nm pkill |
.Op Fl signal |
.Op Fl signal |
.Op Fl fnvx |
.Op Fl fnvx |
.Op Fl G Ar gid |
.Op Fl G Ar gid |
.Op Fl P Ar ppid |
|
.Op Fl U Ar uid |
|
.Op Fl g Ar pgrp |
.Op Fl g Ar pgrp |
|
.Op Fl P Ar ppid |
.Op Fl s Ar sid |
.Op Fl s Ar sid |
.Op Fl t Ar tty |
.Op Fl t Ar tty |
|
.Op Fl U Ar uid |
.Op Fl u Ar euid |
.Op Fl u Ar euid |
.Op Ar pattern Op ... |
.Op Ar pattern ... |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm pgrep |
.Nm pgrep |
|
|
.Pp |
.Pp |
The following options are available: |
The following options are available: |
.Bl -tag -width xxxxxxxx |
.Bl -tag -width xxxxxxxx |
.It Fl G Ar gid |
|
Restrict matches to processes with a real group ID in the comma-separated |
|
list |
|
.Ar gid . |
|
.It Fl P Ar ppid |
|
Restrict matches to processes with a parent process ID in the |
|
comma-separated list |
|
.Ar ppid . |
|
.It Fl U Ar uid |
|
Restrict matches to processes with a real user ID in the comma-separated |
|
list |
|
.Ar uid . |
|
.It Fl d Ar delim |
.It Fl d Ar delim |
Specify a delimiter to be printed between each process ID. |
Specify a delimiter to be printed between each process ID. |
The default is a newline. |
The default is a newline. |
|
|
.It Fl f |
.It Fl f |
Match against full argument lists. |
Match against full argument lists. |
The default is to match against process names. |
The default is to match against process names. |
|
.It Fl G Ar gid |
|
Restrict matches to processes with a real group ID in the comma-separated |
|
list |
|
.Ar gid . |
.It Fl g Ar pgrp |
.It Fl g Ar pgrp |
Restrict matches to processes with a process group ID in the comma-separated |
Restrict matches to processes with a process group ID in the comma-separated |
list |
list |
|
|
command. |
command. |
.It Fl n |
.It Fl n |
Match only the most recently created process, if any. |
Match only the most recently created process, if any. |
|
.It Fl P Ar ppid |
|
Restrict matches to processes with a parent process ID in the |
|
comma-separated list |
|
.Ar ppid . |
.It Fl s Ar sid |
.It Fl s Ar sid |
Restrict matches to processes with a session ID in the comma-separated |
Restrict matches to processes with a session ID in the comma-separated |
list |
list |
|
|
or the shortened form |
or the shortened form |
.Sq xx . |
.Sq xx . |
A single dash (`-') matches processes not associated with a terminal. |
A single dash (`-') matches processes not associated with a terminal. |
|
.It Fl U Ar uid |
|
Restrict matches to processes with a real user ID in the comma-separated |
|
list |
|
.Ar uid . |
.It Fl u Ar euid |
.It Fl u Ar euid |
Restrict matches to processes with an effective user ID in the |
Restrict matches to processes with an effective user ID in the |
comma-separated list |
comma-separated list |