码迷,mamicode.com
首页 > Windows程序 > 详细

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

时间:2017-02-20 16:43:04      阅读:435      评论:0      收藏:0      [点我收藏+]

标签:覆盖   rename   end   dos   exec   控制字符   bytes   方式   art   

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  同上

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

标签:覆盖   rename   end   dos   exec   控制字符   bytes   方式   art   

原文地址:http://www.cnblogs.com/wangcp-2014/p/6420112.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!