Use Xshell to upload and download files (using the SZ and RZ commands)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.