用ps auxww查看进程中有如下进程:
500 3132 0.0 0.4 23072 6392 ? Ss 18:41 0:00 gnome-screensaver
用gprep命令如下:
[rocrocket@localhost ~]$ pgrep gnome-screensaver
[rocrocket@localhost ~]$ pgrep gnome-screensave
[rocrocket@localhost ~]$ pgrep gnome-screensav
3132
请问,这是一个bug么?
ps: 顺便请教大牛关于pidof和pgrep的区别。谢谢! |