1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 01:42:09 +02:00
tldr/pages/common/bash.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

33 lines
618 B
Markdown

# bash
> Bourne-Again SHell.
> `sh`-compatible command line interpreter.
> More information: <https://gnu.org/software/bash>.
- Start interactive shell:
`bash`
- Execute a command:
`bash -c "{{command}}"`
- Run commands from a file:
`bash {{file.sh}}`
- Run commands from a file, logging all commands executed to the terminal:
`bash -x {{file.sh}}`
- Run commands from a file, stopping at the first error:
`bash -e {{file.sh}}`
- Run commands from stdin:
`bash -s`
- Print the version information of bash (use `echo $BASH_VERSION` to show just the version without license information):
`bash --version`