bash Command Examples

Bourne-Again SHell, an sh-compatible command-line interpreter. See also: zsh, histexpand (history expansion). More information: https://www.gnu.org/software/bash/.

bash

bash --norc

bash -c "{{echo 'bash is executed'}}"

bash {{path/to/script.sh}}

bash -x {{path/to/script.sh}}

bash -e {{path/to/script.sh}}

{{echo "echo 'bash is executed'"}} | bash

bash -r