Skip to content

Commit

Permalink
Link to the pgrep man page
Browse files Browse the repository at this point in the history
  • Loading branch information
adetokunbo committed Jan 11, 2024
1 parent 104c0f4 commit 37b0c0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ all running processes, so sudo is required
```sudo printmem```

Usually, you'll want to filter the results. which is supported by the `-p <pid>`
option. This can be specified multiple times to select multiple processes. `pgrep` is great companion tool for obtaining the specific sets of pids for filtering.
option. This can be specified multiple times to select multiple processes. [pgrep] is great companion tool for obtaining the specific sets of pids for filtering.

#### Example: breakdown the memory use of the current user

To restrict output to the current $USER you could obtain the user process IDs using pgrep comme ca:
To restrict output to the current $USER, you can obtain the user's process IDs using pgrep comme ca

```
sudo printmem -S -p $(pgrep -d' -p ' -u $USER)
Expand Down Expand Up @@ -114,3 +114,4 @@ giving output like this:
[hackage-badge]: <https://img.shields.io/hackage/v/hs-mem-info.svg>
[hackage]: <https://hackage.haskell.org/package/hs-mem-info>
[ps_mem]: <https://github.com/pixelb/ps_mem/blob/master/README.md>
[pgrep]: <https://www.man7.org/linux/man-pages/man1/pgrep.1.html>

0 comments on commit 37b0c0f

Please sign in to comment.