zoukankan      html  css  js  c++  java
  • windows下命令行终端使用rz上传文件参数详解

    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

  • 相关阅读:
    Java学习笔记day01
    对有序数组进行二分查找(折半查找)
    对数组进行冒泡排序
    LeetCode #344. Reverse String
    LeetCode #292. Nim Game
    LeetCode #258. Add Digits
    Android DiskLruCache完全解析,硬盘缓存的最佳方案
    Android源码解析——LruCache
    Messenger与AIDL的异同
    Android应用层View绘制流程与源码分析
  • 原文地址:https://www.cnblogs.com/wangcp-2014/p/6420112.html
Copyright © 2011-2022 走看看