Use Lszrz under MAC iTerm2

Source: Internet
Author: User
use Lszrz under MAC iTerm2

MAC ITerm2 What to use Lszrz what is lrzsz why need lszrz specific process installation Lrzsz download Iterm2-zmodem move to a specified location and give executable permission to add triggers to ITerm2

What you need Homebrew package management Tools ITERM2 Terminal command line wget command-line tools what is Lrzsz

Lrzsz (consisting of Lrz and LSZ) is a cosmetically modified Zmodem/ymodem/xmodem package built from the Public-domain ver Sion of the Rzsz package. Lrzsz is created to provide a working the GNU copylefted Zmodem for Linux solution. You are should install Lrzsz If you are also installing a ZMODEM communications program that uses LRZSZ. If you ' re installing minicom, need to install lrzsz.--[RPM]

To be blunt, lrzse is a decorated Zmodem/ymodem/xmodem package built from a common version of Rzsz software packages.
Lrzsz was created to provide a Linux system with a Zmodem solution that works for the GNU version.

Note: Although this place is defined as a Linux system, it is clear that UNIX systems are also available. So I think the definition of like Unix will be better, if you know, please leave a message for me to say, thank you first. Why need Lszrz

If you have used windows like Xshell, SECURECRT, and other terminal command-line tools, you will find that they have a very useful function, that is, tapping RZ on the command line can pop-up file box Let us choose the file to upload, for some, small files, Often use FTP will appear very clumsy, you have to switch to the desktop to start FTP, look for the directory and then upload.
RZ can be easily transmitted from the client file to the server, SZ can also be very convenient from the server file to the client, even if the intermediate across the springboard does not affect
So transferred to the top of OS X, after Terminal.app tried, directly stuck to death, fortunately despair, through the iTerm2 can achieve curves to save the nation. Specific Process Install Lrzsz

First execute the following command:

Brew Install Lrzsz

After the installation is complete, the following interface appears
Download Iterm2-zmodem

Download Iterm2-zmodem with the following two commands:

$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-send-zmodem.sh

$ sudo wget https:// raw.github.com/mmastrac/iterm2-zmodem/master/iterm2-recv-zmodem.sh

After the download completes the interface:

move to the specified location and give executable permissions

Move the two files in the previous step to the/usr/local/bin/directory with the following command:

sudo mv iterm2-*/usr/local/bin/

To set executable permissions on a file that you just moved

sudo chmod 777/usr/local/bin/iterm2-*

As shown in the figure:
add a trigger to ITerm2

Open ITerm2 and click Profiles-> open Profiles->defalut-> Edit Profiles in the status bar. As shown in the following illustration:

Then in the pop-up interface, point advanced.

Then, add the value in and fill in the value as follows:

expression Action Parameters
\*\*b0100 Run Silent Coprocess /usr/local/bin/iterm2-send-zmodem.sh
\*\*b00000000000000 Run Silent Coprocess /usr/local/bin/iterm2-recv-zmodem.sh

Fill it out, as shown in the picture:

Then, restart Iterm 2, connect to the server, enjoy the joy of the Lszrz.

Note: If you are logged on with a expect script, you cannot use Lszrz.

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.