• rz、sz是古老的ZModem协议的文件传输工具


    rz、sz是古老的ZModem协议的文件传输工具。

    linux的服务器装上rz、sz,如果是ubuntu可以用audo apt-get install lrzsz进行安装。
    然后用win下的SecureCRT通过ssh连上来,执行服务器端的rz、sz就可以用了
    执行sz filename ,就会把filename拷贝到win下的指定目录(此目录可在SecureCRT中设定)
    执行rz,win下会弹出个文件选择对话框,选了文件以后,就在linux服务器的当前目录下了。
    超方便啊。
    想必有人会问为什么不用scp或者sftp啊?但是这些还是没rz、sz方便,比如你ssh到主机A,再通过A ssh 到B,想把B的文件传到本地,不是得先scp到A,再到本地呢?用sz就可以一次搞定~
    但是目前支持ZModem的telnet/ssh客户端好像只找到SecureCRT、AbsoluteTelnet和TigerTerm等,都是win下的共享软件(就是要付钱滴),而且客户端也是linux的时候还不知道该怎么用起来,知道的千万告知一声 Very Happy

    以下来自:http://www.linuxpk.com/178.html
    引用:   我想还有很多人没有听说过ZModem协议,更不知道有rz/sz这样方便的工具。
    好东西不敢独享。以下给出我知道的一点皮毛。
    下面一段是从SecureCRT的帮助中copy的:
    ZModem is a full-duplex file transfer protocol that supports fast data transfer rates and effective error detection. ZModem is very user friendly, allowing either the sending or receiving party to initiate a file transfer. ZModem supports multiple file ("batch") transfers, and allows the use of wildcards when specifying filenames. ZModem also supports resuming most prior ZModem file transfer attempts.

    rz,sz是便是Linux/Unix同Windows进行ZModem文件传输的命令行工具
    windows端需要支持ZModem的telnet/ssh客户端,SecureCRT就可以用SecureCRT登陆到Unix/Linux主机(telnet或ssh均可)
    O 运行命令rz,即是接收文件,SecureCRT就会弹出文件选择对话框,选好文件之后关闭对话框,文件就会上传到当前目录
    O 运行命令sz file1 file2就是发文件到windows上(保存的目录是可以配置) 比ftp命令方便多了,而且服务器不用再开FTP服务了
    PS:Linux上rz/sz这两个小工具安装lrzsz-x.x.xx.rpm即可,Unix可用源码自行 编译,Solaris spac的可以到sunfreeware下载执行码
  • 相关阅读:
    Mybatis的缓存
    Mybatis使用assocation和Collection实现延迟加载
    Mybatis:一对多的查询
    Mysql:事务
    Mysql:多表查询
    Mysql:数据库的设计
    Mysql:约束
    MYSQL:DQL-查询表中的记录
    panic: cannot create context from nil parent
    $request input 获取参数null
  • 原文地址:https://www.cnblogs.com/danghuijian/p/4400398.html
Copyright © 2020-2023  润新知