Step 1: Installing Trickle
Execute the following command as root.
yum install epel-release && yum install trickle
Really, there isn’t much to installing this software. Let’s get to the uses.
Step 2: Using Trickle
Now that you have Trickle installed, it’s time to see what it can do. To start, I’ll show you an example of a normal wget download.
trickle -s -d 1000 wget http://cdimage.debian.org/debian-cd/8.1.0/i386/iso-cd/debian-8.1.0-i386-netinst.iso
You may press Ctrl+C after you’ve seen the speed of the download. In that example, Trickle limited the bandwidth to 1000kb/s (1mb/s). You can adjust the “1000” parameter to fit your needs.
To limit FTP, or anything within a shell session, use the following commands.
trickle -s -d 1000 /bin/bash ftp <ftphost>
Anything run in that shell session will be limited to 1mb/s. Therefore, FTP would be limited. When you’re done, you can type exit on the bash session.