Przejdลบ do treล›ci

๐Ÿงฉ 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/sh on Debian/Ubuntu

๐Ÿงฉ fish

  • Not POSIX
  • Very user-friendly
  • Great for interactive use