scp限制速度

ftp等客户端工具都有限制速度的界面,刚查询了下scp也可以限制速度,查看help

$scp –help
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 … [[user@]host2:]file2

 

[root@liups.com~]# scp  -l2000 testcp1214.zip  localhost:/tmp/
root@localhost’s password:
testcp1214.zip                                                                                          0%  768KB 267.4KB/s   05:54 ETA^CKilled by signal 2.
[www@liups.com~]# scp  -l20000 testcp1214.zip  localhost:/tmp/
www@localhost’s password:
testcp1214.zip                                                                                         18%   17MB   2.4MB/s   00:31 ETA^CKilled by signal 2.
[www@liups.com~]# scp  testcp1214.zip  localhost:/tmp/
www@localhost’s password:
testcp1214.zip                                                                                        100%   93MB  31.1MB/s   00:03
[www@liups.com~]#