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
- Install Iterm
Iterm with tmux helps me a lot. - Install lrzsz in the server and the desktop.
sudo brew install lrzsz
sudo apt-get install lrzsz
- Intall two bash files.
Go here. - 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.