Bash

Bash (Bourne Again Shell) is the default command-line shell on most Linux distributions and macOS (prior to Catalina). It’s an enhanced replacement for the original Bourne shell (sh).

Key Features

  • Command history and editing
  • Job control
  • Shell scripting with functions, loops, and conditionals
  • Tab completion
  • Aliases and functions

Configuration Files

FilePurpose
~/.bashrcInteractive non-login shells
~/.bash_profileLogin shells
~/.bash_aliasesCustom aliases
~/.bash_historyCommand history

Check Bash Version

bash --version
echo $BASH_VERSION

See Also