How to download files from linux server to local

王林
Release: 2019-12-18 09:42:20
Original
14283 people have browsed it

How to download files from linux server to local

1. Use scp command

scp /home/work/source.txt work@192.168.0.10:/home/work/   
#把本地的source.txt文件拷贝到192.168.0.10机器上的/home/work目录下
Copy after login
scp work@192.168.0.10:/home/work/source.txt /home/work/   
#把192.168.0.10机器上的source.txt文件拷贝到本地的/home/work目录下
Copy after login
scp work@192.168.0.10:/home/work/source.txt work@192.168.0.11:/home/work/   
#把192.168.0.10机器上的source.txt文件拷贝到192.168.0.11机器的/home/work目录下
Copy after login
scp -r /home/work/sourcedir work@192.168.0.10:/home/work/   #拷贝文件夹,加-r参数
Copy after login

Free video tutorial recommendation: linux video tutorial

2. Use xshell tool

It is very convenient to use xshell to operate services and transfer files.

Just use rz, sz. First, the server must have rz installed, sz

yum install lrzsz
Copy after login

Of course your local windows host is also connected to the linux server through ssh

Run rz, Will transfer the windows file to the linux server

Run sz filename and download the file to the windows local

3. Common methods

Install Xshell and Xftp software locally , there is a shortcut in the xshell software (choose to use Xftp to open the current directory).

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to download files from linux server to local. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template