sz和rz
概述:secureCRT的sz,rz的使用依赖于linux安装包:lrzsz sz:send 即从服务器向客户端’发送‘ 下载文件 rz:recieve 即在服务器从客户端’接收‘上传文件
参数帮助:
sz --help rz --help
配置方式如下:
1挂载ISO镜像
[[email protected] yum.repos.d]# mount /dev/sr0 /mnt
2配置yum源
参考命令:
[[email protected] ~]# mv /etc/yum.repos.d/rhel-source.repo server.repo [[email protected] ~]# vi server.repo [server] name=server baseurl=file:///mnt/Server enabled=1 gpgcheck=0
3安装lrzsz
[[email protected] yum.repos.d]# yum install -y lrzsz Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process server | 4.1 kB 00:00 ... Resolving Dependencies --> Running transaction check ---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved Package Arch Version Repository Size ========================================================================= Installing: lrzsz x86_64 0.12.20-27.1.el6 server 71 k Transaction Summary ========================================================================= Install 1 Package(s) Total download size: 71 k Installed size: 159 k Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : lrzsz-0.12.20-27.1.el6.x86_64 1/1 Verifying : lrzsz-0.12.20-27.1.el6.x86_64 1/1 Installed: lrzsz.x86_64 0:0.12.20-27.1.el6 Complete!
4 指定上传Upload,download 目录
英文版 options — session options — X/Y/Zmodem
中文版 选项— 会话选项— X/Y/Zmodem
5 测试使用
1)在windows上的upload创建aa.txt
在linux上使用rz命令,文件会上传到当前目录下
[[email protected] yum.repos.d]# rz -be
2)下载文件
[[email protected] oracle]# sz awrrpt_2_81_82.html
6 扩展
下载多个文件:
1)sz filename1 filaname2 2)sz dir/* [[email protected] oracle]# sz awrrpt_2_81_82.html bb.txt
问题:使用sz的时候如何将文件目录同时下载?
时间: 2024-11-04 09:03:03