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