bash
Bourne-Again SHell, an `sh`-compatible command-line interpreter.
See also `histexpand` for history expansion.
- Start an interactive shell session:
bash
- Execute a command and then exit:
bash -c "{command}"
bash {path/to/script.sh}
- Execute a script, printing each command before executing it:
bash -x {path/to/script.sh}
- Execute commands from a script, stopping at the first error:
bash -e {path/to/script.sh}
- Read and execute commands from stdin:
bash -s
- Print the Bash version (`$BASH_VERSION` contains the version without license information):
bash --version
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).