【lrzsz】安装lrzsz工具实现Linux和Windows系统之间文件便捷上传与下载

简介: 【lrzsz】安装lrzsz工具实现Linux和Windows系统之间文件便捷上传与下载

二、lrzsz功能介绍

lrzsz是一款在linux里可代替ftp上传和下载的程序。使用这个软件程序只需要一个命令就可以快速解决Windows端和Linux端的文件上传和下载问题。十分方便。

注意事项:该软件适合传输小文件,超过4GB的大文件无法进行传输。


三、安装操作步骤

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端

更多详细信息,执行man sz/rz命令进行查看

从Linux端下载文件至Windows端

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

选择下载文件存放的位置。

71433b8a42c5f911418a75f7d4d3e031.png

下载完成,至Windows端查看。

11068dc438f0bf8c4ee3eb8ab13017e3.png

在Windows端打开此配置文件查看。

ca5e9bf3be01bb73db0f4d2c45140f70.png

从Windows端上传文件至Linux端

在Windows端,修改刚才下载的配置文件名称和添加内容。

5915d06666a9d4ef2f30ef918de7ea0f.png

在Linux端,执行rz命令,选择需要从Windows上传的文件。

f1bd34f2c7354b492792b57fbab9703b.png

传送成功。

37d764c65b309db51480cfb490f3c660.png

在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工具测试完成。

相关文章
|
2月前
|
安全 Linux 生物认证
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
110 0
Nexpose 8.25.0 for Linux & Windows - 漏洞扫描
|
2月前
|
安全 Linux iOS开发
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
356 53
Binary Ninja 5.1.8104 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
2月前
|
安全 Linux 生物认证
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
195 17
Nexpose 8.24.0 for Linux & Windows - 漏洞扫描
|
2月前
|
安全 Linux iOS开发
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
175 6
Nessus Professional 10.10 Auto Installer for RHEL 10, AlmaLinux 10, Rocky Linux 10 - Nessus 自动化安装程序
|
2月前
|
SQL 安全 Linux
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
147 1
Metasploit Pro 4.22.8-20251014 (Linux, Windows) - 专业渗透测试框架
|
2月前
|
Linux 网络安全 iOS开发
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
194 1
Metasploit Framework 6.4.95 (macOS, Linux, Windows) - 开源渗透测试框架
|
2月前
|
Linux API iOS开发
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
221 14
Binary Ninja 4.2.6455 (macOS, Linux, Windows) - 反编译器、反汇编器、调试器和二进制分析平台
|
2月前
|
Linux 虚拟化 iOS开发
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
456 0
VMware Remote Console 13.0.1 for macOS, Linux, Windows - vSphere 虚拟机控制台的桌面客户端
|
2月前
|
Linux iOS开发 计算机视觉
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
GIMP 3.0.6 (Linux, macOS, Windows) 发布 - 免费开源图像编辑器
218 0
|
2月前
|
消息中间件 Kafka Linux
Linux下安装Kafka 3.9.1
本文介绍Kafka 3.9.1版本的安装与配置,包括通过ZooKeeper或KRaft模式启动Kafka。涵盖环境变量设置、日志路径修改、集群UUID生成、存储格式化及服务启停操作,适用于Linux环境下的部署实践。
294 0