mac 安装rz,sz
1、使用brew 安装lrzsz
sudo brew install lrzsz
安装完成后检查 ls -alh /usr/local/bin/sz 是否存在
如果安装报错可以手动下载压缩包安装,安装地址:
https://ohse.de/uwe/software/lrzsz.html
将下载的文件放到
~/Library/Caches/Homebrew
目录下brew install lrzsz
- 2.下载zmodem 其实就是两个简单的shell文件
https://github.com/mmastrac/iterm2-zmodem - 保存
iterm2-send-zmodem.sh
和iterm2-recv-zmodem.sh
到/usr/local/bin/ ,
还要设置权限
chmod -R 775 /usr/local/bin/iterm*zmodem.sh
- 配置iTerm2中的Triggers:(打开iterm2 ------ 同时按 command+,键 --> Profiles --> Default --> Advanced --> Triggers的Edit按钮,在弹出的界面配置以下参数)
Regular expression: rz 等待接收...\*\*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 PS:远端服务器也需要安装lrzsz。centOS安装方法: yum -y install lrzsz
相关推荐
donghedonghe 2013-05-31
tdeclipse 2011-02-28
pigsmall 2020-11-19
SXIAOYI 2020-09-16
Ladyseven 2020-07-25
whileinsist 2020-06-24
gufudhn 2020-06-12
冰蝶 2020-06-05
LinuxAndroidAI 2020-06-04
supperme 2020-05-28
yaodilu 2020-05-10
e度空间 2020-04-27
云端漂移 2020-04-09
peterwzc 2020-03-17
有心就有方向 2012-09-03
ebuild 2013-05-14
linuxprobe0 2013-04-15
linuxprobe0 2013-04-01