Meet macOS

What macOS is

Understand the operating system, its UNIX foundation, and the boundary between the graphical desktop and command-line tools.

macOS is the operating system that runs on a Mac. It manages the hardware, files, applications, accounts, networking, and the graphical desktop you use every day.

An operating system sits between your programs and the machine. When you save a document, macOS decides where the bytes land on disk. When two apps want the processor at the same time, macOS shares it between them. When you plug in a USB drive, macOS makes it appear in Finder.

A UNIX under the desktop

Under the desktop, macOS is a UNIX operating system. Apple builds the graphical interface on top of a core called Darwin. This is why many commands and development tools feel familiar when you later work on Linux.

You can see that foundation yourself. Open Terminal from Applications → Utilities and run:

uname

It prints Darwin, the name of the underlying system. Now ask for the name you see in marketing material:

sw_vers

This prints the product name (macOS), the version number, and the build identifier. Both commands describe the same machine from different angles.

Two views of the same system

The graphical interface and the command line are two views of the same system. A file you drop on the Desktop is immediately visible in Terminal:

ls ~/Desktop

Nothing is copied or synchronized. There is one filesystem, shown two ways. Use the one that makes the current task clearer. Renaming one file is faster in Finder. Renaming two hundred files is faster with a command.

Close to Linux, not identical

The shared UNIX heritage means the concepts transfer: files, permissions, processes, shells. The specific commands do not always transfer. A Linux tutorial that tells you to run apt install something fails on a Mac with command not found, because apt is a Linux package manager. When that happens, don’t force the Linux instructions. Look for the macOS way to do the same job — later lessons in this course cover it.

Lesson completed

Take this course offline

Get every free book, course edition, and software download.

Get the download library →