macOS is the operating system Apple ships on Mac laptops and desktops. It is built on a Unix-based core called Darwin and uses the APFS file system on modern Macs.
Why it matters
macOS is popular among developers because it combines a polished interface with a Unix command line, so tools such as bash or zsh, ssh, and curl work much as they do on Linux servers. That makes local testing closer to production.
Apple controls both hardware and software, which affects which versions of macOS a given Mac can run.
Example
$ sw_vers
ProductName: macOS
ProductVersion: 14.5
This Terminal command prints the installed macOS version, which you need when checking software compatibility.
Common mistakes
- Assuming macOS tools match GNU Linux tools exactly. Some commands, such as sed and date, take different flags.
- Ignoring updates because the Mac still works; Apple supports only recent releases with security fixes.
- Disabling built-in protections like Gatekeeper permanently to run one app.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.