With the help of Xshell, using Linux command sz can easily download the files on the server to the local, using the RZ command is to upload the local files to the server.
Among them, the understanding and memory of SZ and RZ I used the following methods (many times easy to confuse):
SZ in the S meaning send (send), tell the client, I (server) to send files sent to Cilent, is equivalent to the client in the download.
RZ in the R means received (receive), tell the client, I (server) to receive files received by Cilent, is equivalent to the client in the upload.
Remember that, either send or received, the action is initiated on the server. We are used to saying that upload or download, in fact, can not be. Use these two commands, just think about it, is to send the file from the server, or from the client received back, it can be.
If you want to upload files from the client to the server, that is, the server will receive the file back, the logic is: I (client) upload, you (server) receive, use RZ.
If you want to download the file from the server (to the client), that is, the server will send the file, logic is: I downloaded (client), you (server) to send, using SZ.
Well, finally summed up as a sentence:
I (client) upload, you (server) receive (RZ), I download (client), you (server) send (SZ).
--------------------------------------------------------------------------------------------------------------- --------------
SZ usage:
Download a file
sz filename
downloads multiple files
sz filename1 filename2
downloads All files under dir directory, does not contain dir folder
sz dir/*
RZ usage:
When you enter the RZ return, the File Selection dialog box appears, select the file you want to upload, you can specify multiple files at a time, and the path to the server is the directory where you currently execute the RZ command.