RZ sz file transfer in Linux

Source: Internet
Author: User

The SZ of the Linux command I used-Download the file without ftp/sftp

This article link: http://codingstandards.iteye.com/blog/827637 (reproduced please specify the source)

Description of Use

The SZ command uses the Zmodem protocol to transfer files from a Linux server to local, one or more files at a time. corresponding to upload files from the local to the Linux server, you can use the RZ command. See the RZ of the Linux commands I used-upload files in bulk, easy to use.

Common parameters

-A is transmitted in text mode (ASCII).

-B is transferred in binary mode (binary).

-E for control character escaping (escape), which guarantees that the file is transferred correctly.

-C command

-I command executes commands on the receiving side (local), but I did not try to succeed.

If you can determine that the transferred file is in text format, use the sz-a files

If this is a binary file, use the sz-be files

Where does the file go after the download is finished?

SECURECRT, select "Session option (S)" Under menu item "Options (O)", Cut to "Xmodem/zmodem" on the left, and you can see the upload and download directory settings or change. The default upload directory is C:\Program files\securecrt\upload, and the download directory is C:\Program files\securecrt\download.

But in Vista, to C:\Program Files\securecrt\download to see the time and did not find the downloaded files, search for a bit found them in the following directory: c:\users\***\appdata\local\ Virtualstore\program Files\securecrt\download, where * * * is the user name.

Use the sample sample to download a text file in bulk

This example demonstrates downloading a text file, such as C source code.

[[email protected] src]# ls *.c
HTTPTUNNEL_CODEC.C s_agent2.c s_conf.c s_htserv.c s_pop3.c s_smtp.c s_tcpfwd.c s_telnet.c s_user.c s_xort.c
ISURF.C s_agent.c s_ftp.c s_http.c s_run.c s_socks.c s_tcpgum.c s_term.c s_via3.c
PROXYCFG.C s_bridge.c s_host.c s_mime.c s_server.c s_task.c s_tcphub.c surf.c s_via.c
[Email protected] src]# sz-a *.c
Rz
Starting Zmodem transfer. Press CTRL + C to cancel.
Transmitting HTTPTUNNEL_CODEC.C ...
100% KB 5 kb/s 00:00:04 0 Error
Transmitting ISURF.C ...
100% 890 bytes 890 bytes/s 00:00:01 0 error
Transmitting proxycfg.c ...
100% 1 KB 1 kb/s 00:00:01 0 Error
Transmitting s_agent2.c ...
100% 4 KB 1 kb/s 00:00:03 0 Error
Transmitting s_agent.c ...
100% 6 KB 3 kb/s 00:00:02 0 Error

[Email protected] src]# sz-a *.c
Rz
Starting Zmodem transfer. Press CTRL + C to cancel.
Transmitting HTTPTUNNEL_CODEC.C ...
100% KB 2 kb/s 00:00:10 0 Error
Transmitting ISURF.C ...
100% 890 bytes 890 bytes/s 00:00:01 0 error
Transmitting proxycfg.c ...
100% 1 KB 1 kb/s 00:00:01 0 Error
100% 1 KB 1 kb/s 00:00:01 0 Error
Transmitting s_agent2.c ...
100% 4 KB 2 kb/s 00:00:02 0 Error

Example two download binary files

This example demonstrates the download of a binary file, first compressing the previous C source code into a zip file.

[Email protected] src]# zip source.zip *.c
ADDING:HTTPTUNNEL_CODEC.C (deflated 88%)
ADDING:ISURF.C (deflated 58%)
ADDING:PROXYCFG.C (deflated 56%)
ADDING:S_AGENT2.C (deflated 69%)
Adding:s_agent.c (deflated 73%)
ADDING:S_BRIDGE.C (deflated 74%)
ADDING:S_CONF.C (deflated 74%)
ADDING:S_FTP.C (deflated 79%)
Adding:s_host.c (deflated 73%)
ADDING:S_HTSERV.C (deflated 76%)
ADDING:S_HTTP.C (deflated 75%)
ADDING:S_MIME.C (deflated 61%)
ADDING:S_POP3.C (deflated 66%)
ADDING:S_RUN.C (deflated 58%)
ADDING:S_SERVER.C (deflated 69%)
ADDING:S_SMTP.C (deflated 52%)
ADDING:S_SOCKS.C (deflated 79%)
ADDING:S_TASK.C (deflated 65%)
ADDING:S_TCPFWD.C (deflated 75%)
ADDING:S_TCPGUM.C (deflated 73%)
ADDING:S_TCPHUB.C (deflated 75%)
Adding:s_telnet.c (deflated 65%)
ADDING:S_TERM.C (deflated 72%)
ADDING:SURF.C (deflated 58%)
ADDING:S_USER.C (deflated 72%)
ADDING:S_VIA3.C (deflated 52%)
ADDING:S_VIA.C (deflated 71%)
Adding:s_xort.c (deflated 70%)
[Email protected] src]# ls-l source.zip
-rw-r--r--1 root root 57027 11-28 21:37 source.zip
[Email protected] src]# sz-be source.zip
Rz
Starting Zmodem transfer. Press CTRL + C to cancel.
Transmitting Source.zip ...
100% KB 3 kb/s 00:00:15 0 Error

RZ sz file transfer in Linux

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.