Help with use of pgrep or pkill commands with full name options

Eliot Moss moss@cs.umass.edu
Fri Mar 22 16:41:26 GMT 2024


On 3/22/2024 11:56 AM, J M via Cygwin wrote:
> Help with use of pgrep or pkill commands with full name options.
> 
> I trying to use pgrep or pkill utility commands to find processes but using
> the full path names, by example, find /usr/bin/bash (package procps-ng):
> 
> Then, if I use pgrep -f /usr/bin/bash, don't find nothing.
> 
> Using pkill -f /usr/bin/bash don't get the task.
> 
> If I use pidof /usr/bin/bash, this works.
> 
> How do I get it to do use pgrep, pkill, etc?

Seems to use the name without the full path, e.g.,
bash as opposed to /bin/bash, etc.  Not sure why ...

EM


More information about the Cygwin mailing list