summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorTim Ledbetter <timledbetter@gmail.com>2023-05-30 17:51:26 +0100
committerAndreas Kling <kling@serenityos.org>2023-05-31 06:04:48 +0200
commit821bf5e071f3d9b44fffa7c632d24830e3833ff2 (patch)
treec494582647335fc383e36e60c0bf20e6fe8d62cc /Base
parentcb6a2d60d3db5083f297fbf9fd33e4453b2c2ca4 (diff)
downloadserenity-821bf5e071f3d9b44fffa7c632d24830e3833ff2.zip
pgrep: Add `-U` option to filter matches by UID or login name
Diffstat (limited to 'Base')
-rw-r--r--Base/usr/share/man/man1/pgrep.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/Base/usr/share/man/man1/pgrep.md b/Base/usr/share/man/man1/pgrep.md
index 8a95eef471..5d4b224b0b 100644
--- a/Base/usr/share/man/man1/pgrep.md
+++ b/Base/usr/share/man/man1/pgrep.md
@@ -5,7 +5,7 @@ pgrep - look up processes based on name
## Synopsis
```sh
-$ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--invert-match] <process-name>
+$ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--uid uid-list] [--invert-match] <process-name>
```
## Options
@@ -14,6 +14,8 @@ $ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--invert-match]
* `-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
+* `-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
+
* `-v`, `--invert-match`: Select non-matching lines
## Arguments