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

22 lines
362 B
Markdown
Raw Normal View History

2016-02-22 20:11:29 -05:00
# sh
> Bourne shell, the standard command language interpreter.
> See also `histexpand` for history expansion.
> More information: <https://manned.org/sh>.
2016-02-22 20:11:29 -05:00
- Start an interactive shell session:
2016-02-22 20:11:29 -05:00
`sh`
- Execute a command and then exit:
2016-02-22 20:11:29 -05:00
`sh -c "{{command}}"`
2016-02-22 20:11:29 -05:00
- Execute a script:
2016-02-22 20:11:29 -05:00
`sh {{path/to/script.sh}}`
2016-02-22 20:11:29 -05:00
- Read and execute commands from `stdin`:
2016-02-22 20:11:29 -05:00
`sh -s`