Use securecrt to upload and download files (using Sz and RZ commands). This is very practical!

Source: Internet
Author: User

With securtcrt, the Linux Command SZ can easily download files from the server to the local, and the RZ command is used to upload local files to the server.

Here, I use the following methods for understanding and memorizing Sz and RZ (it is often easy to confuse ):

In SZ, "S" means "send" and tells the client that "I (server)" wants to send the file "send to cilent", which is equivalent to "Download" on the client.

The R in RZ indicates received, and tells the client that the client is uploading the received ed by cilent file.

Remember that the action is initiated on the server, whether it is send or received. We are used to uploading or downloading, but it is not necessary. To use these two commands, you only need to think about whether to send the file from the server or connect it to the client.

If you want to upload a file from the client to the server, the server receives the file. The logic is: I (client) Upload. You (server) receive the file and use Rz.

If you want to download the file back from the server (to the client), the server sends the file. The logic is: I download (client), you (server) Send, use Sz.

Well, the last sentence is as follows:

I (client) Upload, you (server) receive (RZ), I download (client), you (server) Send (sz ).

Bytes -----------------------------------------------------------------------------------------------------------------------------

SZ usage:

 
Download one file SZ filename download multiple files SZ filename1 filename2 download all files under the Dir directory, excluding the folder sz dir/* under the Dir /*

The location where the downloaded file is stored is set in securtcrt:

The English version of options-session options-x/y/zmodem.

Chinese option-session option-x/y/zmodem.

Rz usage:

Enter RZ and press Enter. The file selection dialog box appears. Select the file to be uploaded. Multiple files can be specified at a time. The path uploaded to the server is the directory where the RZ command is currently executed.

Bytes -----------------------------------------------------------------------------------------------------------------------------

Operation example:

Perform the upload operation first. We use the RZ Command, as shown below:

In the displayed dialog box, select the file to be uploaded and click "OK". We recommend that you select a directory to be uploaded, which facilitates management, all uploaded files are under this directory for management. the following is my operation, which is set by myself.

A new download folder is created, and CD download/enters the folder. I upload all the files to the root/download directory for upload in the current directory.

Enter RZ to upload the file. Select the file to be uploaded.

Click OK. Now the upload starts. The progress bar is displayed.

If the upload page does not appear, click

Click "zmodem upload list" to upload the file. Let's use the check Command ll.

Now the file has been uploaded. Other files can be uploaded to Linux in this way so that we can install the software.

Let's take a look at the download operation and use the sz command:

Run the command SZ to upload the file, and then specify the file to be downloaded.

Start to show progress bar

But where have I downloaded it?

Click Options:

Select the last x/y/zmodem setting

Upload Directory: when you use the RZ command to upload files, the pop-up dialog box is located under this directory by default.

Download Directory: The downloaded files are downloaded to the sz command by default.

Have you seen it! The downloaded file is in the E: \ share \ download folder. You can set the default directory for downloading and uploading.

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.