From f225b799c98fedc8d0926557be1306370bd8a520 Mon Sep 17 00:00:00 2001 From: Marcel Ruland <26412792+marcelruland@users.noreply.github.com> Date: Wed, 24 Apr 2024 21:02:07 +0200 Subject: [PATCH] ps: clarify grep example (#12650) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- pages/common/ps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/ps.md b/pages/common/ps.md index aef4b6d7c..33919e8ab 100644 --- a/pages/common/ps.md +++ b/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: