Use Xshell to upload and download files (using SZ and RZ commands), Super practical!

Source: Internet
Author: User

With Xshell, using the Linux command sz can easily download files on the server to local, using the RZ command to upload local files to the server.

Among them, for SZ and RZ understanding and memory I used the following methods (often easy to confuse):

The s in SZ mean Send (send), tell the client, I (server) to send the file send to Cilent, is equivalent to the client in the download.

RZ in R means received (receive), tell the client, I (server) to receive files received by Cilent, is equivalent to the client in the upload.

Remember, either send or received, the action is initiated on the server. We are used to saying that upload or download, in fact, it is not necessary. with these two commands, just think about whether you want to send the file out of the server or receive it back from the client.

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, using RZ.

If you want to download the file from the server back (to the client), the server will send the file, the logic is: I downloaded (the client), you (server) sent, using SZ.

Well, the final summary is a sentence:

I (client) uploads, you (server) receive (RZ), I download (client), you (server) send (SZ).

--------------------------------------------------------------------------------------------------------------- --------------

SZ usage:

Download a file sz filename download multiple files sz filename1 filename2 download all files under dir directory, do not include the folder under Dir sz dir/*


RZ usage:

After entering RZ Enter, the file selection dialog will appear, select the file you want to upload, you can specify more than one file at a time, and upload the path to the server as the directory of the currently executing RZ command.

Use Xshell to upload and download files (using SZ and RZ commands), Super practical!

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.