BSD
A family of Unix-like operating systems, such as FreeBSD and OpenBSD, descended from the Berkeley version of Unix.
In more detail
The BSDs do not install bash by default, and when it is added it lives in /usr/local/bin rather than /bin. That is why a shebang of /bin/bash fails there while /usr/bin/env bash finds it. macOS borrows many of its command-line tools from BSD, so their options can differ from the GNU tools on Linux.
Related terms
- Unix — A family of operating systems from the 1970s whose design ideas Linux and macOS both follow.
- GNU — A free-software project that wrote many standard command-line tools, including Bash, grep, sed and the core file utilities.
- shebang — The first line of a script, starting with #!, that names the program the operating system should use to run it.
- macOS — Apple's operating system for Mac computers, built on a Unix-like core called Darwin.
Taught in
- Shebangs, Permissions And Three Ways To Run — Bash Scripting & Command Line Automation
- POSIX sh Versus Bash — Bash Scripting & Command Line Automation
- Printing With CUPS: Two Switches Per Queue — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep