关于linux:lrzsz安装lrzsz工具实现Linux和Windows系统之间文件便捷上传与下载

2次阅读

共计 1709 个字符,预计需要花费 5 分钟才能阅读完成。

一、参考链接

阿里巴巴开源镜像站 -OPSX 镜像站 - 阿里云开发者社区

centos 镜像 -centos 下载地址 -centos 装置教程 - 阿里巴巴开源镜像站

lrzsz | Sail

二、lrzsz 性能介绍

<font color=red>lrzsz</font> 是一款在 linux 里可代替 ftp 上传和下载的程序。应用这个软件程序只须要一个命令就能够 疾速解决 Windows 端和 Linux 端的文件上传和下载问题。非常不便。

<font color=red>注意事项:该软件适宜传输小文件,超过 4GB 的大文件无奈进行传输。</font>

三、装置操作步骤

1、Linux 端

阐明:本实验室基于 CentOS 7.9 零碎装置应用的。

[root@centos ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

查找 lrzsz 包

# yum provides lrzsz
[root@centos ~]# yum provides lrzsz
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp-stud.hs-esslingen.de
lrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programs
Repo        : base



lrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programs
Repo        : @base



[root@centos ~]# 

装置 lrzsz 包

# yum install -y  lrzsz
[root@centos ~]# yum install -y  lrzsz
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: ftp-stud.hs-esslingen.de
Package lrzsz-0.12.20-36.el7.x86_64 already installed and latest version
Nothing to do

2、Windows 端

留神:应用 Xshel、SecureCRT 近程连贯软件,通过 ssh/telnet 连贯 Linux 端服务器能够反对应用。

3、测试应用

参数阐明

sz 从 Linux 端下载文件至 Windows 端
rz 从 Windows 端上传文件至 Linux 端

更多详细信息,执行 <font color=red>man sz/rz</font> 命令进行查看

从 Linux 端下载文件至 Windows 端

# 在 Linux 端创立一个名为 xybdiy 的配置文件
# vim xybdiy 
增加如下内容:Hello World!
xybdiy
按:wq 保留退出。#执行如下命令从 Linux 端下载此配置文件至 Windows 端
# sz xybdiy 
呈现如下 "浏览文件夹" 的选项框,抉择寄存地位。

抉择下载文件寄存的地位。

下载实现,至 Windows 端查看。

在 Windows 端关上此配置文件查看。

从 Windows 端上传文件至 Linux 端

在 Windows 端,批改方才下载的配置文件名称和增加内容。

在 Linux 端,执行 <font color=red>rz</font> 命令,抉择须要从 Windows 上传的文件。

传送胜利。

在 Linux 端查看配置文件 xybdiy-windows

[root@centos ~]# ll
total 16
-rw-------. 1 root root 1531 Feb  9 11:55 anaconda-ks.cfg
-rw-r--r--  1 root root  219 Feb 15 17:17 cook
-rw-r--r--  1 root root   20 Feb 19 14:55 xybdiy
-rw-r--r--  1 root root   66 Feb 19 15:01 xybdiy-windows
[root@centos ~]# cat xybdiy-windows 
Hello World!
xybdiy

# Windows 端上传至 Linux 端
Hello xybDIY![root@centos ~]# 

至此,lrzsz 工具测试实现。

正文完
 0