Use the rz, sz command on mac, rzsz

Source: Internet
Author: User

Use the rz, sz command on mac, rzsz

The rz and sz commands are used on mac. The terminals on mac do not support rz and sz. Therefore, install iterm and configure rz and cz

1. Download and install iterm2 first.

Http://www.iterm2.cn/download

2. Use brew to install lrzsz

Enter brew install lrzsz on the terminal. If homeBrew is not installed, install it first.
After installation, check whether ls-alh/usr/local/bin/sz exists.

3. Add a trigger

After the lrszs command is successfully installed, you need to create two scripts to the/usr/local/bin directory. Script address:

Https://github.com/mmastrac/iterm2-zmodem

Finally, modify the iterm2 Configuration:

Open iterm2 ------ at the same time press command and, key ------- Profiles ---------- Default ------- Advanced ------ Triggers Edit button

 

Click "+" to add the following parameters. For more information, see

 

Regular expression: \ * B0100

Action: Run Silent Coprocess

Parameters:/usr/local/bin/iterm2-send-zmodem.sh

 

Regular expression: \ * B00000000000000

Action: Run Silent Coprocess

Parameters:/usr/local/bin/iterm2-recv-zmodem.sh

4. Run the rz and sz commands.

Enter the sz + file name under a directory. You can download an object and select the directory to which it is downloaded.

Enter a directory. You can use rz to upload a file and select the file to be uploaded.

 

Related Article

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.