rz和sz
来源:互联网 发布:介数中心性算法 编辑:程序博客网 时间:2024/06/06 05:35
linux和window传送小文件时非常有用:
rz:window下面的文件传到linux时,在linux命令行键入rz :
- Usage:
rz if.xmodem][options] [filename. -
- Receive
files with ZMODEM/YMODEM/XMODEM protocol -
-
(X) = option applies to XMODEM only -
-
(Y) = option applies to YMODEM only -
-
(Z) = option applies to ZMODEM only -
-
-+, --append append to existing files -
-
-a, --ascii ASCII transfer (change CR/LF to LF) -
-
-b, --binary binary transfer -
-
-B, --bufsize N buffer N bytes (N==auto: buffer whole file) -
-
-c, --with-crc Use 16 bit CRC (X) -
-
-C, --allow-remote-commands allow execution of remote commands (Z) -
-
-D, --null write all received data to /dev/ -
-
--delay-startup N sleep N seconds before doing anything -
-
-e, --escape Escape control characters (Z) -
-
-E, --rename rename any files already existing -
-
--errors N generate CRC error every N bytes (debugging) -
-
-h, --help Help, print this usage message -
-
-m, --min-bps N stop transmission if BPS below N -
-
-M, --min-bps-time N for at default:least N seconds ( 120) -
-
-O, --disable-timeouts disable timeout code, wait forever for data -
-
--o-sync open output file(s) in synchronous write mode -
-
-p, --protect protect existing files -
-
-q, --quiet quiet, no progress reports -
-
-r, --resume try to resume interrupted file transfer (Z) -
-
-R, --restricted restricted, more secure mode -
-
-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds -
-
-S, --timesync request remote time (twice: set local time) -
-
--syslog[=off] turn syslog on or off, if possible -
-
-t, --timeout N set timeout to N tenths of a second -
-
-u, --keep-uppercase keep upper case filenames -
-
-U, --unrestrict disable restricted mode (if allowed to) -
-
-v, --verbose be verbose, provide debugging information -
-
-w, --windowsize N Window is N bytes (Z) -
-
-X --xmodem use XMODEM protocol -
-
-y, --overwrite Yes, clobber existing file if any -
-
--ymodem use YMODEM protocol -
-
-Z, --zmodem use ZMODEM protocol
sz命令恰好相反,用于把linux上的文件上传到windows上
具体命令解析如下:
[csharp] view plaincopy
- Usage:
sz [options] file ... -
-
or: sz [options] -{c|i} COMMAND -
- Send
file(s) with ZMODEM/YMODEM/XMODEM protocol -
-
(X) = option applies to XMODEM only -
-
(Y) = option applies to YMODEM only -
-
(Z) = option applies to ZMODEM only -
-
-+, --append append to existing destination file (Z) -
-
-2, --twostop use 2 stop bits -
-
-4, --try-4k go up to 4K blocksize -
-
--start-4k start with 4K blocksize (doesn't try 8) -
-
-8, --try-8k go up to 8K blocksize -
-
--start-8k start with 8K blocksize -
-
-a, --ascii ASCII transfer (change CR/LF to LF) -
-
-b, --binary binary transfer -
-
-B, --bufsize N buffer N bytes (N==auto: buffer whole file) -
-
-c, --command COMMAND execute remote command COMMAND (Z) -
-
-C, --command-tries N try N times to execute a command (Z) -
-
-d, --dot-to-slash change '.' to '/'in pathnames (Y/Z) -
-
--delay-startup N sleep N seconds before doing anything -
-
-e, --escape escape all control characters (Z) -
-
-E, --rename force receiver to rename files it already has -
-
-f, --full-path send full pathname (Y/Z) -
-
-i, --immediate-command CMD send remote CMD, return immediately (Z) -
-
-h, --help print this usage message -
-
-k, --1k send 1024 byte packets (X) -
-
-L, --packetlen N limit subpacket length to N bytes (Z) -
-
-l, --framelen N limit frame length to N bytes (l>=L) (Z) -
-
-m, --min-bps N stop transmission if BPS below N -
-
-M, --min-bps-time N for at default:least N seconds ( 120) -
-
-n, --newer send file if source newer (Z) -
-
-N, --newer-or-longer send file if source newer or longer (Z) -
-
-o, --16-bit-crc use 16 bit CRC instead of 32 bit CRC (Z) -
-
-O, --disable-timeouts disable timeout code, wait forever -
-
-p, --protect protect existing destination file (Z) -
-
-r, --resume resume interrupted file transfer (Z) -
-
-R, --restricted restricted, more secure mode -
-
-q, --quiet quiet (no progress reports) -
-
-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds -
-
--tcp build a TCP connection to transmit files -
-
--tcp-server open socket, wait for connection -
-
-u, --unlink unlink file after transmission -
-
-U, --unrestrict turn off restricted mode (if allowed to) -
-
-v, --verbose be verbose, provide debugging information -
-
-w, --windowsize N Window is N bytes (Z) -
-
-X, --xmodem use XMODEM protocol -
-
-y, --overwrite overwrite existing files -
-
-Y, --overwrite-or-skip overwrite existing files, else skip -
-
--ymodem use YMODEM protocol -
-
-Z, --zmodem use ZMODEM protocol
示例如下:
# sz file1 file2
# rz -+
0 0
- rz和sz
- rz和sz
- linux命令:sz和rz
- linux rz和sz命令
- rz命令 和 sz命令
- centOS7安装rz和sz
- Linux 安装 rz和sz
- linux下没有sz和rz命令,sz/rz工具包
- rz/sz
- rz sz
- rz/sz
- 在CentOS上安装rz和sz
- 使用 sz rz下载和上传文件
- linux 的rz和sz工具
- CentOS 安装rz和sz命令
- CentOS安装rz和sz命令
- SecureCRT 安装上传(rz)和下载(sz)
- SecureCRT的sz和rz工具包
- Java定时任务以及ScheduledThreadPoolExecutor需要注意的问题
- Java中Split函数的用法技巧
- 会声会影x5注册机怎么用?
- iOS地图坐标系转换
- 什么是MVC
- rz和sz
- android adb 通过adb连接制定设备
- apache Kafka简介
- Mysql批量删除相同前缀或后缀的表
- 继承Thread类和实现Runnable接口的对比
- Android Intent.FLAG_NEW_TASK详解,包括其他的标记的一些解释
- Suse linux 下mysql忘记root密码
- mysql 二进制安装
- Struts1与Struts2的区别