SZ and RZ on MAC OS

Summary

In this post, I will introduce how to send files from a server to a local machine.

Details

1. Use SCP

SCP is a well-known command.

scp a.zip fighternan@mydestop.com:

2. Use Iterm and SZ&RZ

  1. Install Iterm
    Iterm with tmux helps me a lot.
  2. Install lrzsz in the server and the desktop.
sudo brew install lrzsz
sudo apt-get install lrzsz
  1. Intall two bash files.
    Go here.
  2. Add triggers.
    Open
iterm2 -->  press 'command' and ',' (open the preference) --> Profiles --> Default --> Advanced --> Triggers Edit

Add the following two triggers:

Regular 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

Then we are all set.

Leave a Reply

Your email address will not be published. Required fields are marked *