What is Lrzsz?
In the process of using Linux, inevitably need to upload download files, such as uploading some war packets to the server, and so on, before the use of Winscp,lrzsz is a more convenient command, you can directly enter commands in Linux, Pop up a box to choose which file to upload or where to save the file, and then make sure it's OK. Lrzsz is not a built-in command, and by default most versions of Linux do not have this command and need to be installed to use it.
How to Install
Download the latest release version of Lrzsz on the official website: https://ohse.de/uwe/software/lrzsz.html
To download the installation package:
wget https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
Extract:
Tar zxvf lrzsz-0.12.20.tar.gz
Go to the unpacked directory and make a bit:
./configure && make && make install
If the following error occurs during the make process:
No acceptable cc found in $PATH
You need to install GCC first:
Yum Install GCC
Enter the/usr/bin directory to create a soft link for the previously installed files:
Ln-s/usr/local/bin/lrz rzln-s/usr/local/bin/lsz sz
How to use
RZ: Upload
SZ <file-name>: Download
X-shell will pop up the window to choose
SECURECRT Setting the default path in Options---X/y/zmodem
Tips for uploading files
X-shell can directly drag one or more files to the X-shell interface, which will automatically upload the dragged file to the command line current directory.
Reference documents
Enter rz-h or sz-h to view the Help document:
RZ version 0.12.20usage:rz [options] [Filename.if.xmodem]receive Files with Zmodem/ymodem/xmodem protocol (X) = option Applies to XMODEM-only (Y) = option Applies-Ymodem only (Z) = option Applies-ZMODEM only-+,--append Append to existing files-a,--ASCII ASCII transfer (change cr/lf to LF)-B,--binary Binary transfer-b,--bufsize N buffer n bytes (n==auto:buffer whole file)-C,--WITH-CRC Use + bit CRC (X)-C,--allow-remote-commands allow execution of remote commands (Z)-D,--null writ e all received data to/dev/null--delay-startup N sleep n seconds before doing anything-e,--escape Escape control characters (Z)-E,--rename rename any files already existing--errors N Generate CRC Error every N bytes (debugging)-H,--help help, print this usage message-m,--min -bps N StopTransmission if BPS below N-m,--min-bps-time N for at least n seconds (default:120)-O,--disable-timeouts Disable timeout code, wait forever for data--o-sync open output file (s) in synchronous write mode -p,--protect protect existing files-q,--quiet quiet, no progress reports-r,--resume Try to resume interrupted file transfer (Z)-R,--restricted restricted, more secure mode-s, --stop-at {hh:mm|+n} stop transmission at hh:mm or in N seconds-s,--timesync request remote time (TWIC E:set local time)--syslog[=off] turn syslog on or off, if possible-t,--timeout N set Timeou T to N tenths of a second-u,--keep-uppercase keep Upper case filenames-u,--unrestrict disable rest ricted mode (if allowed to)-V,--verbose be verbose, provide debugging information-w,--windowsize N Window is N bytes(Z)-X--xmodem use Xmodem protocol-y,--overwrite Yes, clobber existing file if any- -ymodem use Ymodem protocol-z,--zmodem use Zmodem protocolshort options use the same Argu ments as the long ones
Reference Documentation:
1. https://ohse.de/uwe/software/lrzsz.html
。
Linux under command Lrzsz