Trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode.
Currently, trickle supports the shaping of any SOCK_STREAM (see socket(2)) connection established via the socket(2) interface. Furthermore, trickle will not work with stati-cally linked executables, nor with setuid(2) executables. trickle is highly configurable; download and upload rates can be set separately, or in an aggregate fashion.
Step 1. Installation.
apt-get install trickle
Step 2. Usage of trickle.
trickle -d 200 apt-get upgrade
Launch apt-get upgrade limiting its download capacity at 20o KB/s.