๐งฉ sh vs bash vs zsh
Comparison of the most common POSIX shells.
๐ Who This Is For
- Beginners choosing a shell
- Intermediate users learning differences
- Advanced engineers needing structured reference
- DevOps and sysadmins working across systems
๐งฉ sh (POSIX)
- Minimal
- Portable
- Used in scripts
- Guaranteed to exist everywhere
๐งฉ bash
- Most common
- Arrays, functions, brace expansion
- Default on many Linux distros
๐งฉ zsh
- Advanced interactive features
- Plugins (Oh My Zsh)
- Better completion
- Preferred by macOS users
๐งฉ dash
- Very fast
- Very small
- Strict POSIX
- Default
/bin/shon Debian/Ubuntu
๐งฉ fish
- Not POSIX
- Very user-friendly
- Great for interactive use