My process name is core-plugin-loader
core-plugin-loader --file=/usr/lib/blah.so &
pi@kyb-pi4 /usr> pgrep core-plugin-loader
pi@kyb-pi4 /usr> pgrep core-plugin-loa
13892
pi@kyb-pi4 /usr> pgrep -a core-plugin-loa
13892 core-plugin-loader --file=/usr/lib/blah.so
pi@kyb-pi4 /usr> pgrep -a core-plugin-loader
Version:
pgrep from procps-ng 3.3.15
> head -1 /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
Looks very strange. How to fix this for pgrep
?
Here is Q about thread name. But I ask for a process name.
This seems to be in
man pgrep
: