首页 > 代码库 > 使用xshell5 从CentOS主机download资料

使用xshell5 从CentOS主机download资料

 

需要安装一个软件,步骤如下:

第一步,找出软件的完整名称;

第二步,安装该软件;

第三步,执行sz命令。

参考下面的执行过程

[root@mylinux ~]# yum provides lrzsz*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
lrzsz-0.12.20-27.1.el6.x86_64 : The lrz and lsz modem communications programs
Repo        : base
Matched from:
Other       : lrzsz(x86-64) = 0.12.20-27.1.el6
Other       : lrzsz = 0.12.20-27.1.el6



[root@mylinux ~]# yum install lrzsz-0.12.20-27.1.el6.x86_64
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
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                                             base                                           71 k

Transaction Summary
=================================================================================================================================================================================================================
Install       1 Package(s)

Total download size: 71 k
Installed size: 159 k
Is this ok [y/N]: y
Downloading Packages:
lrzsz-0.12.20-27.1.el6.x86_64.rpm                                                                                                                                                         |  71 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  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!
[root@mylinux ~]#
[root@mylinux ~]# sz /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.3.jar

 

最后使用sz命令加上需要下载的文件即可,xshell5会提示如下:

技术分享

 

直接保存即可。

使用xshell5 从CentOS主机download资料