与‘rz’有关的日志

linux下的rz及sz的安装及使用说明

zhang 发表于 Linux 分类,标签: , , ,
11

我们经常要对服务器上面的文件进行上传或下载,有什么比较简单的方法可以实现吗?我们可以利用rz和sz可以实现上面的目的。rz和sz是Linux/Unix同Windows进行ZModem文件传输的命令行工具。
rz命令—上传本地文件到服务器端
即是接收文件(SecureCRT接收),SecureCRT就会弹出文件选择对话框,选好文件之后关闭对话框,文件就会上传到当前目录;

使用方法为:[root@localhost yum.repos.d]# rz  就可以。
sz命令—从服务器端下载文件到本地
sz file1 file2就是发文件到windows上(保存的目录是可以配置);

使用方法为:[[root@localhost yum.repos.d]# sz   就可以。

要是我们在命令行下使用rz或sz提示命令不对,是因为你的linux/unix服务器上面没有安装lrzsz包。

安装lrzsz包的方法如下:

[root@localhost yum.repos.d]# yum -y install lrzsz
Loading “installonlyn” plugin
Loading “rhnplugin” plugin
Loading “security” plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Package lrzsz.i386 0:0.12.20-22.1 set to be updated
–> Running transaction check

Dependencies Resolved
阅读全文 »