Xshell + lrzsz 实现Linux与Windos文件互传

326 阅读1分钟

一、介绍

        lrzsz是一款在linux里可代替ftp上传和下载的程序。博主使用是Centos系统,配置好Yum源后,使用Yum下载并安装lrzsz程序。 下载使用“sz”命令,sz全称send(发送),输入sz时、服务器发送文件,也就是本地从服务器上下载文件。 上传使用“rz”命令,rz全称received(接收),输入rz时、服务器接收文件,也就是文件从本地上传到服务器。

 

环境:租3A服务器,使用xshell连接

二、安装lrzsz

1、安装

1)命令

yum -y install lrzsz

2)实例

[root@wangwu ~]# yum -y install lrzsz

 

Loaded plugins: fastestmirror, langpacks

 

Loading mirror speeds from cached hostfile

 

... ... ...

2、查看

1)命令

yum info lrzsz

2)实例

[root@wangwu ~]# yum info lrzsz #查看软件信息

 

Loaded plugins: fastestmirror, langpacks

 

Loading mirror speeds from cached hostfile

 

Installed Packages

 

Name        : lrzsz

 

Arch        : x86_64

 

Version     : 0.12.20

 

Release     : 36.el7

 

Size        : 181 k

 

Repo        : installed

 

From repo   : anaconda

 

Summary     : The lrz and lsz modem communications programs

 

URL         : www.ohse.de/uwe/softwar…

 

License     : GPLv2+

 

Description : Lrzsz (consisting of lrz and lsz) is a cosmetically modified

 

            : zmodem/ymodem/xmodem package built from the public-domain version of

 

            : the rzsz package. Lrzsz was created to provide a working GNU

 

            : copylefted Zmodem solution for Linux systems.

三、使用

1、rz(本机文件上传到服务器)

打开Xshell,输入服务器IP,填写用户名、密码,连接服务器,命令行输入rz,弹出对话框,选择需要上传的文件后,点击打开进行上传。

 

注:Xshell安装下载使用可以参照以下链接

 

实用工具系列 - Xshell安装下载与使用_Passerby_Wang的博客-CSDN博客_xshell工具下载

一、介绍二、下载三、安装四、使用

blog.csdn.net/Passerby_Wa…