windows下命令行终端使用rz上传文件参数详解

本文详细介绍了rz命令的各项参数及其用途,包括不同传输模式如ASCII和Binary,错误处理方式,以及文件操作选项如追加、重命名等。适用于需要通过网络进行文件传输的场景。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

rz命令:

  1.   (X) = option applies to XMODEM only  
  2.   (Y) = option applies to YMODEM only  
  3.   (Z) = option applies to ZMODEM only  
  4. -+, --append                append to existing files  
  5. -a, --ascii                 ASCII transfer (change CR/LF to LF)  
  6. -b, --binary                binary transfer  
  7. -B, --bufsize N             buffer N bytes (N==auto: buffer whole file)  
  8. -c, --with-crc              Use 16 bit CRC (X)  
  9. -C, --allow-remote-commands allow execution of remote commands (Z)  
  10. -D, --null                  write all received data to /dev/null  
  11.     --delay-startup N       sleep N seconds before doing anything  
  12. -e, --escape                Escape control characters (Z)  
  13. -E, --rename                rename any files already existing  
  14.     --errors N              generate CRC error every N bytes (debugging)  
  15. -h, --help                  Help, print this usage message  
  16. -m, --min-bps N             stop transmission if BPS below N  
  17. -M, --min-bps-time N          for at least N seconds (default: 120)  
  18. -O, --disable-timeouts      disable timeout code, wait forever for data  
  19.     --o-sync                open output file(s) in synchronous write mode  
  20. -p, --protect               protect existing files  
  21. -q, --quiet                 quiet, no progress reports  
  22. -r, --resume                try to resume interrupted file transfer (Z)  
  23. -R, --restricted            restricted, more secure mode  
  24. -s, --stop-at {HH:MM|+N}    stop transmission at HH:MM or in N seconds  
  25. -S, --timesync              request remote time (twice: set local time)  
  26.     --syslog[=off]          turn syslog on or off, if possible  
  27. -t, --timeout N             set timeout to N tenths of a second  
  28. -u, --keep-uppercase        keep upper case filenames  
  29. -U, --unrestrict            disable restricted mode (if allowed to)  
  30. -v, --verbose               be verbose, provide debugging information  
  31. -w, --windowsize N          Window is N bytes (Z)  
  32. -X  --xmodem                use XMODEM protocol  
  33. -y, --overwrite             Yes, clobber existing file if any  
  34.     --ymodem                use YMODEM protocol  
  35. -Z, --zmodem                use ZMODEM protocol  

参数解析:

-a 表示使用ascii码格式传输文件,如果是Dos格式的文件,会转换为unix格式
-b –binary 用binary的方式上传下载,不解释字符为ascii
-e –escape 强制escape 所有控制字符,比如Ctrl+x,DEL等
-r 使用 Crash recovery mode. 即文件传输中断会重传
-y 表示文件已存在的时候会覆盖
-O (大写O)采用同步写模式,以处理从缓存写到磁盘时中断丢失的情况
--o-sync  同上

 

PS:通常上传比较大的文件时 用rz -be

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值