@j3s @janriemer TIL about `pgrep`!
In the past I would have done:
ps -ax | rg firefox
@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
@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 :)
@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