我的进程名称是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
版本:
pgrep from procps-ng 3.3.15
> head -1 /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
看起来很奇怪。如何解决这个问题pgrep
?
这是关于线程名称的Q。但我要求一个进程名称。