Link Search Menu Expand Document


Bourne-Again SHell, an sh-compatible command-line interpreter. See also histexpand for history expansion. More information:

  • Start an interactive shell session:


  • Execute a command and then exit:

bash -c "{{command}}"

  • Execute a script:

bash {{path/to/}}

  • Execute a script, printing each command before executing it:

bash -x {{path/to/}}

  • Execute commands from a script, stopping at the first error:

bash -e {{path/to/}}

  • Read and execute commands from stdin:

bash -s

  • Print the Bash version ($BASH_VERSION contains the version without license information):

bash --version