不用xftp,使用Xshell拖拽文件到linux

1.安装lrzsz

yum install  lrzsz

Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                                                                                       | 3.6 kB  00:00:00     
epel                                                                                                                                       | 3.2 kB  00:00:00     
extras                                                                                                                                     | 3.4 kB  00:00:00     
updates                                                                                                                                    | 3.4 kB  00:00:00     
(1/7): base/7/x86_64/group_gz                                                                                                              | 166 kB  00:00:00     
(2/7): epel/x86_64/group_gz                                                                                                                |  88 kB  00:00:00     
(3/7): epel/x86_64/updateinfo                                                                                                              | 929 kB  00:00:00     
(4/7): extras/7/x86_64/primary_db                                                                                                          | 172 kB  00:00:00     
(5/7): epel/x86_64/primary                                                                                                                 | 3.5 MB  00:00:00     
(6/7): base/7/x86_64/primary_db                                                                                                            | 5.9 MB  00:00:00     
(7/7): updates/7/x86_64/primary_db                                                                                                         | 4.2 MB  00:00:00     
Determining fastest mirrors
epel                                                                                                                                                  12618/12618
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-36.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================
 Package                             Arch                                 Version                                        Repository                          Size
==================================================================================================================================================================
Installing:
 lrzsz                               x86_64                               0.12.20-36.el7                                 base                                78 k

Transaction Summary
==================================================================================================================================================================
Install  1 Package

Total download size: 78 k
Installed size: 181 k
Is this ok [y/d/N]: y
Downloading packages:
lrzsz-0.12.20-36.el7.x86_64.rpm                                                                                                            |  78 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:
bt-httpd-2.4.25-1.el7.centos.x86_64 has missing requires of libcrypto.so.1.0.0()(64bit)
bt-httpd-2.4.25-1.el7.centos.x86_64 has missing requires of libnghttp2.so.14()(64bit)
bt-httpd-2.4.25-1.el7.centos.x86_64 has missing requires of libssl.so.1.0.0()(64bit)
bt-php-5.4.45-1.el7.centos.x86_64 has missing requires of libiconv
bt-php-5.4.45-1.el7.centos.x86_64 has missing requires of libmcrypt
bt-php-5.4.45-1.el7.centos.x86_64 has missing requires of libmcrypt.so.4()(64bit)
bt-php-5.4.45-1.el7.centos.x86_64 has missing requires of mcrypt
bt-php-5.4.45-1.el7.centos.x86_64 has missing requires of mhash
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
2:postfix-2.10.1-6.el7.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
  Installing : lrzsz-0.12.20-36.el7.x86_64                                                                                                                    1/1 
  Verifying  : lrzsz-0.12.20-36.el7.x86_64                                                                                                                    1/1 

Installed:
  lrzsz.x86_64 0:0.12.20-36.el7                                                                                                                                   

Complete!

2.上传文件

输入rz

打开选择文件的窗口

不用xftp,使用Xshell拖拽文件到linux_第1张图片

选择文件后,点击确定,文件就会发送到服务器

不用xftp,使用Xshell拖拽文件到linux_第2张图片

传输完毕!

不用xftp,使用Xshell拖拽文件到linux_第3张图片

看服务器当前目录

3.下载

sc fileName

例:

本地选择存放位置 然后保存即可

不用xftp,使用Xshell拖拽文件到linux_第4张图片

从此就不用再开一个xftp工具上传下载文件l了。^-^

 

你可能感兴趣的:(linux)