So, I have some jobs like this:
sleep 30 | sleep 30 &
The natural way to think would be:
kill `jobs -p`
But that kills only the first sleep but not the second.
Doing this kills both processes:
kill %1
But that only kills at most one job if there are a lot of such jobs running.
It shouldn't kill processes with the same name but not run in this shell.
killall sleep– DopeGhoti Aug 02 '17 at 17:20sleep 30 | sleep 30? Do you pressControl-zand dobg? – Arkadiusz Drabczyk Aug 02 '17 at 17:31