美文网首页
Mac iterm2支持rz、sz

Mac iterm2支持rz、sz

作者: wMeSlAx767 | 来源:发表于2019-03-27 10:27 被阅读0次

ZModem integration for iTerm 2

This script can be used to automate ZModem transfers from your OSX desktop to a server that can run lrzsz (in theory, any machine
that supports SSH), and vice-versa.

The minimum supported iTerm2 version is 1.0.0.20120108

Troubleshooting

  • Sending a directory may fail: this is a known issue
  • If you are using tmux or some other terminal multiplexer (ie: screen), try using the -e option to sz and/or rz on your server to force escaping of more characters during transmission.
  • This tool may also fail if you are using expect or rlogin as it expects a mostly-clean 8-bit connection between the two parties.

Setup

  1. Install lrzsz on OSX: brew install lrzsz
  2. Save the iterm2-send-zmodem.sh and iterm2-recv-zmodem.sh scripts in /usr/local/bin/
  3. Set up Triggers in iTerm 2 like so:
    How to Create a Trigger

<pre>
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

</pre>

To send a file to a remote machine:

  1. Type rz on the remote machine
  2. Select the file(s) on the local machine to send
  3. Wait for the coprocess indicator to disappear

The receive a file from a remote machine

  1. Type sz filename1 filename2 … filenameN on the remote machine
  2. Select the folder to receive to on the local machine
  3. Wait for the coprocess indicator to disappear

Future plans (patches welcome)

  • Visual progress bar indicator

引用

相关文章

  • Mac Iterm2 支持 rz sz 命令

    安装 lrzsz brew install lrzsz 配置 iterm2 脚本 拉取 https://githu...

  • mac支持rz sz

    mac环境连接linux时支持rz sz的步骤: 一、安装iterm2mac自带的终端是实现不了的,所以需要下载i...

  • Mac iterm2支持rz、sz

    ZModem integration for iTerm 2 This script can be used to...

  • 常用指令

    文件传输(Mac:在iTerm2中使用Zmodem传输文件) 传输文件rz 接收文件sz filename1 fi...

  • mac借用iTerm2使用rz sz

    mac自带终端不支持使用rz命令,要借助一个精美的软件叫iTerm2来使用。 安装iTerm2 官网下载 http...

  • iterm2安装rz sz

    Install lrzsz on OSX: brew install lrzsz git clone https:...

  • iterm2配置sz、rz

    iterm2-send-zmodem.sh iterm2-recv-zmodem.sh

  • mac rz/sz配置

    https://blog.csdn.net/Lee782678345/article/details/107976241

  • Linux常用命令

    rz&sz 作用:rz用于上传;sz用于下载安装:yum install lrzsz常用方法: rz -y ;//...

  • Linux命令学习四

    1. rz 、sz 1.1 rz windows ——> Linux上传文件 sz Linux ——>window...

网友评论

      本文标题:Mac iterm2支持rz、sz

      本文链接:https://www.haomeiwen.com/subject/zxbavqtx.html