How to limit the network rate used by scp in Linux?

I am using a shared network and scp to upload files. I do not want to use most of the bandwidth available. How to limit the network rate used by scp in Linux?

You can use the -l option of scp to limit the rate of bandwidth.

-l limit
Limits the used bandwidth, specified in Kbit/s.

For example, to limit the network bandwidth used. For example, to limit the bandwidth that scp uses to at most 1000 Kbit/s, you may use command

scp -l 1000 file user@remote:/path/to/dest/

For more options, check manual of scp.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

2 comments:

Leave a Reply

Your email address will not be published. Required fields are marked *