There are two easy ways to make a zip on a Mac: right-click a folder in the Finder and choose Compress, or run zip in the Terminal. Both work. The problem shows up on the…
Every Mac ships with sips — Scriptable Image Processing System — so there is nothing to install to convert, resize, or rotate an image from the Terminal. For a single photo, the Finder is honestly…
cron still works on macOS. The crontab command is built in — there is nothing to install — and it schedules jobs with the same five-field syntax you would use on Linux. The trouble Mac…
rsync copies and syncs folders efficiently — it only transfers the parts that changed, which makes it ideal for backups and for keeping two machines in step. It’s built into macOS, so there’s nothing to…
The macOS way to find your IP address from the terminal isn’t the Linux ip addr or hostname -I — neither of those exists here. It’s ipconfig getifaddr, with one wrinkle: you have to point…
macOS has a built-in command for keeping your Mac awake — caffeinate — so there’s no app to install. Its most useful trick is wrapping a command so the Mac stays up for exactly as…
Most command-line development on a Mac needs only the Xcode Command Line Tools — the compilers, git, and make, a few hundred megabytes — not the full multi-gigabyte Xcode IDE. Here’s how to install just…
macOS’s command-line tools come from BSD, not the GNU coreutils that ship with most Linux distributions. They cover the same ground, but their flags don’t always match — so a command copied straight from a…
macOS ships BSD sed at /usr/bin/sed, not the GNU version Linux uses. Most substitutions work the same, but a few differences turn a copied-from-Linux command into a cryptic error — and the -i flag is…
macOS ships the BSD version of find at /usr/bin/find, not the GNU findutils version most Linux distributions use. Most of what you know carries over unchanged — but a handful of habits from Linux tutorials…