O marcador que você está procurando é:
kill 'pidof gnome-screenshot'
pidof is preferable here compared to
pgrep
,killall
and some invocations ofps
, which only consider the first 15 characters of a command name and can choke on hyphens. Be careful not to kill the similarly prefixedgnome-screensaver
if you use these..