One of the big differences between a Raspberry Pi and an Arduino is the operating system. The Arduino’s “operating system,” if you want to call it that, is little more than some libraries that get added to your sketches, and a bootloader to make it easier to load them into the ATmega’s flash memory. The Raspberry Pi, even the Pi Zero W, runs Raspbian, a full-blown Linux desktop installation.
An in-depth treatment of Linux/Raspbian could be a book by itself. Instead, I’m going to start with the basics: what you need to know right now so you don’t wreck the hard ...