1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

pgrep: Add -l option to list the process name as well as its pid

This commit is contained in:
Tim Ledbetter 2023-05-30 17:51:22 +01:00 committed by Andreas Kling
parent ad851706ab
commit cb6a2d60d3
2 changed files with 14 additions and 8 deletions

View file

@ -5,7 +5,7 @@ pgrep - look up processes based on name
## Synopsis
```sh
$ pgrep [--count] [-d delimiter] [--ignore-case] [--invert-match] <process-name>
$ pgrep [--count] [-d delimiter] [--ignore-case] [--list-name] [--invert-match] <process-name>
```
## Options
@ -13,6 +13,7 @@ $ pgrep [--count] [-d delimiter] [--ignore-case] [--invert-match] <process-name>
* `-c`, `--count`: Suppress normal output and print the number of matching processes
* `-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
* `-v`, `--invert-match`: Select non-matching lines
## Arguments