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.

Answered by Eric Z Ma.

Eric Z Ma

Eric is a father and 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.

Leave a Reply

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