How to Limit the Network Bandwidth Used by Applications in a Linux System with Trickle

Trickle is a network bandwidth shaper tool that allows us to manage the upload and download speeds of applications in order to prevent any single one of them to hog all (or most) of the available bandwidth.