How do I kill the last spawned background task in linux?

Example:

doSomething
doAnotherThing
doB &
doC
doD
#kill doB
????

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *