Xshell has built-in RZ directly from Windows to drag files into the terminal

Source: Internet
Author: User
Tags control characters

Xshell has built-in RZ directly from Windows to drag files into the terminal

Http://www.jb51.net/LINUXjishu/163820.html

With SECURTCRT, 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 method (because many times easy to confuse): The SZ in the s meaning 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.
Note: The SZ and RZ commands require server support if prompted without a command:

Copy CodeThe code is as follows:-bash:rz:command not Found-bash:sz:command not found

Can be installed with Yum (for example, CentOS):

Copy CodeThe code is as follows: Yum install Lrzsz-y

Use the following examples to illustrate the use of SZ and RZ:

SZ usage (Run command sz is more convenient than FTP command, and the server does not need to open FTP service):

Copy CodeThe code is as follows: #下载一个文件 sz filename #下载多个文件 sz filename1 filename2 #下载dir目录下的所有文件, not including the folder under Dir sz dir/*

The location of the download file needs to be set in SECURTCRT, such as:


RZ usage:

After entering RZ enter in the command terminal, the file selection dialog will appear, select the file to be uploaded, specify multiple files at one time, and upload the path to the server as the directory of the currently executing RZ command.


Note: Using RZ alone will have two problems: Upload interrupt, upload file changes (MD5 different), the solution is to upload is rz-be, and remove the popup dialog box "Upload files as ASCII" before the check. -b binary uploads the download in binary mode, does not explain that the character is Ascii-e force escape all control characters, such as Ctrl+x,del.

Xshell has built-in RZ directly from Windows to drag files into the terminal

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.