Home > Article > Operation and Maintenance > 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目录下
scp work@192.168.0.10:/home/work/source.txt /home/work/ #把192.168.0.10机器上的source.txt文件拷贝到本地的/home/work目录下
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目录下
scp -r /home/work/sourcedir work@192.168.0.10:/home/work/ #拷贝文件夹,加-r参数
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
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!