What is "bash"
Bash - B
ourne-A
Gain SH
Ell
The word Shell comes from the English meaning "ladle" and the idea of using this term in Operating Systems (S.O.) is to define the layer that is above the S.O. - between the operating system and the user. Although GNU/Linux has several other shells, Bash is the default shell in most distributions.
Bash is the acronym for 'Bourne-Again Shell' (bash
) and it’s compatible with the old 'Bourne Shell' (sh
).
A basic description of Bash’s operation:
When reading and interpreting shell commands basically:
- Reads an entry from a file (shell script), user terminal or string passed by option -c bash.
- Breaks this entry into words and operators
- Parse the commands for
- Expand what is needed
- Make the redirects if necessary
- Executes the command
- Wait for the command to finish and collect its exit status
Original here.
Official Reference Manual:
Some information on this wiki was taken from here:
Overview of the Bash: