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
| File | Purpose |
|---|---|
~/.bashrc | Interactive non-login shells |
~/.bash_profile | Login shells |
~/.bash_aliases | Custom aliases |
~/.bash_history | Command history |
Check Bash Version
bash --version
echo $BASH_VERSION






