[kwlug-disc] Question about `ps` and `grep`
Raymond Chen
raymondchen625 at gmail.com
Thu Sep 26 14:44:07 EDT 2024
I use ripgrep <https://github.com/BurntSushi/ripgrep> locally, which has
better regex support, IMO.
On Thu, Sep 26, 2024 at 14:24 John Van Ostrand <john at vanostrand.com> wrote:
> Me too. I'm stuck on ps -ef which always gets me when I'm on my pfSense
> firewall (NetBSD based.) I started to use pkill a while ago, but I do
> rarely kill processes and often after a top where I can see the PID anyway.
> I know about pgrep, but I still ps -ef | grep ...
>
>
> On Thu, Sep 26, 2024 at 12:49 PM Khalid Baheyeldin <kb at 2bits.com> wrote:
>
>> On Wed, Sep 25, 2024 at 9:31 PM Doug Moen <doug at moens.org> wrote:
>> >
>> > Oh, that's clever. What I do instead is `ps aux | grep tmux | grep -v
>> grep`.
>>
>> That is what I have been doing for decades too.
>>
>> Though I use ps -ef rather than aux, because I learned UNIX on SysV
>> systems, not the BSD lineage.
>>
>> _______________________________________________
>> kwlug-disc mailing list
>> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
>> with the subject "unsubscribe", or email
>> kwlug-disc-owner at kwlug.org to contact a human being.
>>
>
>
> --
> John Van Ostrand
> At large on sabbatical
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20240926/e0a5d60b/attachment.htm>
More information about the kwlug-disc
mailing list