惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

Z shell

iTerm2 有什么鲜为人知使用技巧? - V2EX 在 shell (zsh) 中键入命令时会重复第一个字符的 bug - V2EX Windows/MSYS2 下 zsh 用什么插件库速度最快? - V2EX 在 zsh 里将一个文本的各行展开为 N 个命令行参数 - V2EX 好早以前设置了 bash/zsh 终端自动联想/补全命令 的功能,忘了是什么软件了?怎么关闭 - V2EX 大佬指点下 Linux 文件修改替换原文件的方法 - V2EX 请教一下会 shell 处理 JSON 脚本的大佬 - V2EX ys or agnoster? - V2EX [shell] 关于通配符的两点疑问 - V2EX 有没有对 git status 支持比较好对 zsh 主题 - V2EX 大佬们的 zsh 都装了哪些插件和主题啊,影响终端的启动速度这点使人不爽不知道肿么破? - V2EX 做了一款算是小清新的 zsh 主题 jovial,有人要晒终端么~ - V2EX osx 下 zsh 速度越来越慢,有么有同学遇到跟我一样的问题? - V2EX 有人在 windows 上装了 oh my zsh 吗 - V2EX 请问 zsh 下这种效果是如何实现的? - V2EX 分享一个 zsh 下一键添加 proxychains4 命令前缀的插件 - V2EX 那些我希望在一开始使用 Zsh(oh-my-zsh) 时就知道的 - V2EX [zsh] zshell 很卡啊,有么有同志点播一下 - V2EX ZSH 命令行工具如何检查升级? - V2EX 求推荐一款 zsh 主题~ - V2EX 配置了下 zsh - V2EX oh-my-zsh启动速度很慢 - V2EX
shell 下有没有办法解决人追加命令的需求 - V2EX
theoda · 2020-07-13 · via Z shell
theoda

3

theoda  

OP

   2021 年 7 月 3 日

aloxaf 友友,是我描述不清楚。描述中 A; B 应该是 A && B,即完成了 A 才能继续 B 。实际情况类似:

```sh
scp [email protected]:~/foo.zip . # A: 下载 foo.zip
unzip foo.zip && cp -a foo /mnt/flash/. # B: 解压、拷贝到 U 盘
```

如果 C-C 后重新敲命令改成 A && B,就白白浪费了 scp 的下载时间;
如果想等 scp 下载完再敲第 2 句,人回来得不及时,就得晚点拿到 U 盘。

我想把整个流程比喻成 bullet mode,子弹发射出去,我可以随时继续发射,而非命中目标后才发射第二颗子弹。

之所以回来回复,是因为我突然想到了一个勉强的解决方案:

```sh
A &
wait && B & # 随时追加
wait && C &
```

只是需要第一次敲命令必须记得 &