Browse Source

ps: clarify grep example (#12650)

* Update ps.md

* Update pages/common/ps.md

Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com>

* Update ps.md

* Update ps.md

* Update pages/common/ps.md

---------

Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com>
Marcel Ruland 10 months ago
parent
commit
f225b799c9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/common/ps.md

+ 2 - 2
pages/common/ps.md

@@ -11,9 +11,9 @@
 
 `ps auxww`
 
-- Search for a process that matches a string:
+- Search for a process that matches a string (the brackets will prevent `grep` from matching itself):
 
-`ps aux | grep {{string}}`
+`ps aux | grep {{[s]tring}}`
 
 - List all processes of the current user in extra full format: