mirror of https://github.com/CrimsonTome/tldr.git
29 lines
463 B
Markdown
29 lines
463 B
Markdown
# bash
|
|
|
|
> Bourne-Again SHell.
|
|
> `sh`-compatible command line interpreter.
|
|
|
|
- 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 STDIN:
|
|
|
|
`bash -s`
|
|
|
|
- Print the version information of bash (use `echo $BASH_VERSION` to show just the version string):
|
|
|
|
`bash --version`
|