How to limit network bandwidth on Linux

If you often run multiple networking applications on your Linux desktop, or share bandwidth among multiple computers at home, you will want to have a better control over bandwidth usage.

Otherwise, when you are downloading a big file with a downloader, your interactive SSH session may become sluggish to the point where it’s unusable. Or when you sync a big folder over Dropbox, your roommate may complain that video streaming movie at her computer gets choppy.