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:
parent
ad851706ab
commit
cb6a2d60d3
2 changed files with 14 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue