Systems

operating system · OS

The operating system is the master program that runs the whole machine — Windows, macOS, and Linux are the ones you've heard of. It's the first thing that loads when you press the power button, and it stays in charge the entire time, managing the hardware and running every other program on top of itself. Without it, a computer is just a pile of silicon that doesn't know what to do.

Its main job is to be the middleman between your apps and the raw hardware. When your editor wants to save a file, it doesn't poke the disk directly — it asks the OS, and the OS handles the messy details. Same for showing a window, playing a sound, or reaching the network. This lets app makers write 'save this file' once instead of learning the quirks of a thousand different disks.

It's also the traffic cop. Dozens of programs want the CPU, the RAM, and the screen all at once, and the OS decides who gets what and when — slicing the CPU's time between them so fast that they all seem to run together. It keeps them from trampling each other's memory, too, so one crashing app doesn't take the whole machine down with it.

$ uname -s
Darwin
$ uname -sr   # on Linux
Linux 6.5.0

uname asks the OS what it is — Darwin is the core under macOS; Linux reports its kernel version.

The kernel is the OS's innermost core — the part that talks straight to the hardware. The OS as a whole also bundles the desktop, file tools, and everyday programs around that core.

Also called
OSWindowsmacOSLinux