mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
pgrep: Add -n
option to display the newest matching process only
This commit is contained in:
parent
f95dccdb45
commit
47b530fa71
2 changed files with 10 additions and 4 deletions
|
@ -5,7 +5,7 @@ pgrep - look up processes based on name
|
|||
## Synopsis
|
||||
|
||||
```sh
|
||||
$ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--uid uid-list] [--invert-match] [--exact] <process-name>
|
||||
$ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--newest] [--uid uid-list] [--invert-match] [--exact] <process-name>
|
||||
```
|
||||
|
||||
## Options
|
||||
|
@ -14,6 +14,7 @@ $ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--uid uid-list]
|
|||
* `-d`, `--delimiter`: Set the string used to delimit multiple pids
|
||||
* `-i`, `--ignore-case`: Make matches case-insensitive
|
||||
* `-l`, `--list-name`: List the process name in addition to its pid
|
||||
* `-n`, `--newest`: Select the most recently created process only
|
||||
* `-U uid-list`, `--uid uid-list`: Select only processes whose UID is in the given comma-separated list. Login name or numerical user ID may be used
|
||||
* `-x`, `--exact`: Select only processes whose names match the given pattern exactly
|
||||
* `-v`, `--invert-match`: Select non-matching lines
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue