Features of Bash
- Bash is sh-compatible as it derived from the original UNIX Bourne Shell. It is incorporated with the best and useful features of the Korn and C shell like directory manipulation, job control, aliases, etc.
- Bash can be invoked by single-character command line options (-a, -b, -c, -i, -l, -r, etc. ) as well as by multi-character command line options also like --debugger, --help, --login, etc.
- Bash Start-up files are the scripts that Bash reads and executes when it starts. Each file has its specific use, and the collection of these files is used to help create an environment.
- Bash consists of Key bindings by which one can set up customized editing key sequences.
- Bash contains one-dimensional arrays using which you can easily reference and manipulate the lists of data.
- Bash comprised of Control Structures like the select construct that specially used for menu generation.
- Directory Stack in Bash specifies the history of recently-visited directories within a list. Example: pushd builtin is used to add the directory to the stack, popd is to remove directory from the stack and dirs builtin is to display content of the directory stack.
- Bash also comprised of restricted mode for the environment security. A shell gets restricted if bash starts with name rbash, or the bash --restricted, or bash -r option passed at invocation.