Files
tldr/pages.zh/common/sh.md

21 lines
359 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# sh
> Bourne shell标准命令语言解释器。
> 另请参见 `histexpand` 以进行历史扩展。
> 更多信息:<https://manned.org/sh>。
- 启动一个交互式 shell 会话:
`sh`
- 执行一个命令然后退出:
`sh -c "{{command}}"`
- 执行一个脚本:
`sh {{path/to/script.sh}}`
-`stdin` 读取并执行命令:
`sh -s`