在试验或者实际的环境中,通过windows平台来管理维护linux系统时,想向系统上传或者下载
一些文件时,就比较头疼。不想因为上传或下载一个小的文件,就向服务器中安装一个FTP或者
SAMBA服务。
这时候,我推荐的这个小工具就拍上用处了。lrszs其实包含两个工具,rz和sz。
关于rz的简介:
This program uses error correcting protocols to receive files over a dial-in serial port
from a variety of programs running under PC-DOS, CP/M, Unix, and other operating sys‐
tems. It is invoked from a shell prompt manually, or automatically as a result of an
"sz file ..." command given to the calling program.
Rz (Receive ZMODEM) receives files with the ZMODEM batch protocol. Pathnames are sup‐
plied by the sending program, and directories are made if necessary (and possible).
Normally, the "rz" command is automatically issued by the calling ZMODEM program, but
some defective ZMODEM implementations may require starting rz the old fashioned way.
关于sz的简介:
Sz uses the ZMODEM, YMODEM or XMODEM error correcting protocol to send one or more files
over a dial-in serial port to a variety of programs running under PC-DOS, CP/M, Unix,
VMS, and other operating systems.
简单的说就是:rz(Receive ZMODEM)使用ZMODEN协议接收文件(站在服务器的角度),也就是我们从客户端向服务器上传文件。
sz(Send ZMODEM)使用ZMODEN协议发送文件,也就是我们从客户端向服务器下载文件。
这时候配合我们的SecureCRT等工具,就可以方便快捷的上传下载文件了!
使用rz上传文件:
使用sz下载文件:
当某些系统没有安装时,可以下载源代码,编译安装一下。
下载地址:https://github.com/jnavila/lrzsz
不过现在很多linux系统默认就安装了这个工具了。