HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

psgrep — Search running processes with `grep`. More information: <https://jvz.github.io/psgrep/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgrepsearchpsgrepclirunningwithprocesses

Problem

How to use the psgrep command: Search running processes with grep. More information: <https://jvz.github.io/psgrep/>.

Solution

psgrep — Search running processes with grep. More information: <https://jvz.github.io/psgrep/>.

Find process lines containing a specific string:
psgrep {{process_name}}


Find process lines containing a specific string, excluding headers:
psgrep -n {{process_name}}


Search using a simplified format (PID, user, command):
psgrep -s {{process_name}}

Code Snippets

Find process lines containing a specific string

psgrep {{process_name}}

Find process lines containing a specific string, excluding headers

psgrep -n {{process_name}}

Search using a simplified format (PID, user, command)

psgrep -s {{process_name}}

Context

tldr-pages: common/psgrep

Revisions (0)

No revisions yet.