Email or username:

Password:

Forgot your password?
Top-level
Dusty Pomerleau

@j3s @janriemer TIL about `pgrep`!

In the past I would have done:

ps -ax | rg firefox

2 comments
aburka 🫣

@dpom @j3s @janriemer I still usually do that one because pgrep only gives you the PID. So if there are multiple results you don't get any hints which is which

Daniel

@dpom @j3s @janriemer If you didn't know about its buddy pkill, you do now! Basically the same arguments as pgrep but does what you would expect :)

Go Up