Sunday, 26 June 2011

Bandwidth Throttling in Ubuntu

Need to limit the amount of bandwidth an application uses? Using the command-line and a handy utility called trickle you can.

sudo apt-get install trickle

trickle takes simple -d (for download) and -u (upload) options and then applies the limit to whatever application you put afterwards. As an example, here's how to force firefox to only use 10kB/s of download bandwidth and 5k of upload:

trickle -d 10 -u 5 firefox &

Pretty cool, eh?

No comments:

Post a Comment