Giter VIP home page Giter VIP logo

iterm2-zmodem's Introduction

szsend Zmodem,就是用Zmodem文件传输协议从Linux服务器发送文件到客户端的意思,rz 则就是 receive Zmodem ,从字面就很容易理解是在Linux上接收文件,也就是上传了。

服务器安装

yum install lrzsz -y

使用

上传文件到服务器,直接敲 rz 即可

rz

下载文件到客户端, sz 后跟需要下载的文件路径

sz fileName

MAC OS配置

在mac上就有点麻烦了。

mac自带的终端是不支持的,需要安装 iTerm2 ,这里不介绍如何安装。

安装 lrzsz

brew install lrzsz

下载 iTerm2 脚本文件, 执行以下3条命令:

1、进入到 bin 目录,我们要把脚本下载到此目录

cd /usr/local/bin

2、下载iterm2-recv-zmodem.sh

sudo wget https://raw.githubusercontent.com/xjh22222228/iterm2-zmodem/master/iterm2-recv-zmodem.sh

3、下载iterm2-send-zmodem.sh

sudo wget https://raw.githubusercontent.com/xjh22222228/iterm2-zmodem/master/iterm2-send-zmodem.sh

4、赋予权限

sudo chmod 777 iterm2-*

如无法下载 点击这里 到github仓库自行下载。

配置iTerm2 1、打开 iTerm2 => Preferences => Profiles => Advanced => Triggers Edit

2、点击 + 新增以下2条:

\*\*B0100       Run Silent Coprocess  /usr/local/bin/iterm2-send-zmodem.sh 打勾

\*\*B00000000000000  Run Silent Coprocess  /usr/local/bin/iterm2-recv-zmodem.sh 打勾

至此配置完成, 在 iTerm2 打开新的终端即可使用。

最后附上一张预览图:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.