Reference:
the Mac osx installation iTerm2, upload and download and use rz sz (attached homebrew configuration)
Solved using sz and rz command in Mac terminal at iTerm2 error problem
In Mac connection Tencent cloud , we realized the connection using iTerm2 Tencent cloud server, then use iTerm2 achieve Tencent cloud and local mac transfer files.
Installation iTerm2
Recommend Quguan network download http://www.iterm2.com/
If you can not download Baidu cloud download link: https://pan.baidu.com/s/1EUeRGDAdG0VJDuH9zn_iXQ Password: v1sr
Installation lrzsz
brew install lrzsz
Configuration rz sz
ITerm2 configuration
after installation is complete we need to use in iTerm2 then also you need some configuration
Into / usr / local / bin directory, download two scripts
cd /usr/local/bin
sudo wget https://gist.githubusercontent.com/sy-records/1b3010b566af42f57fa6fa38138dd22a/raw/2bfe590665d3b0e6c8223623922474361058920c/iterm2-send-zmodem.sh
sudo wget https://gist.githubusercontent.com/sy-records/40f4ba22e3fbdeedf58463b067798962/raw/b32d2f7ac3fa54acca81be3664797cebb724690f/iterm2-recv-zmodem.sh
sudo chmod 777 /usr/local/bin/iterm2-*
Once downloaded to enter the folder view
If the above address is invalid, and from my Baidu network disk to download the two files, manually added.
iTerm2 configuration
After the download is good we iTerm2 configuration
Click the settings interface Perference iTerm2 -> Profiles -> Default -> Advanced -> Triggers the Edit button
Click the + sign to add the following parameters
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checked
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked
-
rz upload function
in bash, that is iTerm2 input terminal rz file selection box will pop up, select the file you choose to start uploading, uploaded to the current directory -
sz download
sz fileName (the name you want to download the file) Enter
will pop up a form we can choose where you want to save.