We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Bourne Shell

As we talked about before:

  • If you're using Ubuntu on WSL, you're probably running a Bash shell.
  • If you're using macOS, you're probably running a Zsh shell.
  • If you're running a raw Linux installation, I pray you already know what you're using.

To get hand-wavy about it, I want to explain the difference between the 3 shells you're likely to encounter:

  • sh: The Bourne shell. This is the original Unix shell and is POSIX-compliant. It's very basic and doesn't have many quality-of-life features.
  • bash: The Bourne Again shell. This is the most popular shell on Linux. It builds on sh, but also has a lot of extra features.
  • zsh: The Z shell. This is the most popular shell on macOS. Like bash, it does what sh can do, but also has a lot of extra features.

Both zsh and bash are "sh-compatible" shells, meaning they can run .sh scripts, but they also have extra features that generally make them more pleasant to use. For your purposes, the differences between zsh and bash are not super significant. Everything we do in this course will work in both shells.