1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/zsh.md

22 lines
341 B
Markdown
Raw Normal View History

2019-08-15 13:56:24 +08:00
# zsh
> Z SHell.
2019-10-18 11:30:29 +08:00
> 与 `bash` 和 `sh` 兼容的命令行解释器.
2019-10-18 10:33:27 +08:00
> 更多信息:<https://www.zsh.org>.
2019-08-15 13:56:24 +08:00
2019-10-19 14:12:27 +08:00
- 启动交互式解释器:
2019-08-15 13:56:24 +08:00
`zsh`
2019-10-19 14:12:27 +08:00
- 执行从参数传入的命令:
2019-08-15 13:56:24 +08:00
`zsh -c {{command}}`
2019-10-18 10:33:27 +08:00
- 从文件执行命令 (脚本):
2019-08-15 13:56:24 +08:00
`zsh {{file}}`
2019-10-19 14:12:27 +08:00
- 从文件执行命令并将执行过的命令打印到终端:
2019-08-15 13:56:24 +08:00
`zsh -x {{file}}`