Ever wanted to limit the bandwidth of a single command in Linux? It’s easy with trickle. You use it to launch the program that you want to restrict and it will provide a modified (restricted) version of sockets. No configuration… nothing.
Here’s how to install and use it to limit the bandwidth given to Firefox to 300 KB/sec on Ubuntu:
sudo apt-get install trickle
trickle -d 300 firefox
Ridiculously easy right?