N unix explained: why developers use macs, and how to get it on windows - Netscape _ □ ×
Back Forward Home Reload Guides Sign
URL: http://www.nicnonac.com/guides/unix-guide/
☷ unix explained: why developers use macs, and how to get it on windows - nicnonac guides _□×

← back to guides

unix explained: why developers use macs, and how to get it on windows

Stacks · 8 min read · posted Nov 21, 2026, 2:24 am

Unix is a family of operating systems that started at Bell Labs in 1969. macOS is in it. Linux, which runs Android and most of the internet's servers, is built to the same design. Windows is the one mainstream system outside the family, and that gap is why so many coding tutorials break on a Windows PC at the first step.

This is the longer version of my video. It covers what a kernel is and who is in the family, then how to get a Unix terminal on the computer you already own. On a Mac that takes zero installs. On Windows it's one command and a restart.

the thing tutorials skip

Nearly every coding tutorial has a line like "open your terminal and run this". It assumes your terminal is a Unix one and never says so. On a Mac the command works. In the Windows Command Prompt, the same line gets you this:

C:\Users\you> ls -la
'ls' is not recognized as an
internal or external command,
operable program or batch file.

PowerShell gets one step further. It keeps ls as a nickname for one of its own commands, then trips on the options:

PS C:\Users\you> ls -la
Get-ChildItem : A parameter
cannot be found that matches
parameter name 'la'.

Nothing is broken and you didn't type it wrong. You're on a different family of operating system, and the tutorial never mentioned that families exist.

what a kernel is

Every operating system has a kernel. It's the program that sits between your apps and the hardware.

+-------------------------+
|           apps          |
|   browser, code editor  |
+-------------------------+
             |
      "open notes.txt"
             v
+-------------------------+
|          KERNEL         |
|  the only part that can |
|    touch the hardware   |
+-------------------------+
             |
             v
+-------------------------+
|         hardware        |
| disk, ram, screen, wifi |
+-------------------------+

Apps never touch the disk or the screen themselves. They ask the kernel, using a fixed list of requests called system calls. Opening a file is one. Starting another program is one.

That list, plus the habits built around it (where files live, how programs pass data to each other), is what makes two systems feel the same or feel foreign. When I say family, that's what I mean.

the family tree

UNIX  (bell labs, 1969)
 |
 +-- BSD  (berkeley, late 1970s)
 |    +-- macOS, iOS
 |    |   (kernel: XNU)
 |    +-- FreeBSD
 |        (playstation, netflix)
 |
 +.. same design, all new code
      +-- Linux  (1991)
           +-- android
           +-- ubuntu, debian
                (servers)

WINDOWS NT  (1993)
 +-- windows 10, 11

Unix was written by Ken Thompson and Dennis Ritchie. In 1973 they rewrote it in C, which meant it could be moved to other kinds of computer. Universities got copies and started changing it.

BSD is the version that came out of Berkeley. The Mac's kernel is called XNU and it's built from BSD code plus a kernel called Mach, so the Mac is a descendant, not an imitation. The iPhone runs the same kernel. XNU stands for "X is Not Unix", which is the kind of joke you get when engineers name things.

Linux is a kernel that Linus Torvalds started in 1991, as a student in Helsinki. He wrote it from scratch to behave like Unix. It shares the design and none of the original code. Android is built on it, so most of the world's phones run it. So do most servers: W3Techs puts Unix-family systems at about 92% of the websites whose operating system it can identify, and every machine on the TOP500 supercomputer list has run Linux since 2017.

Windows NT is Microsoft's own design from 1993, and every Windows since XP runs on it. It answers a different list of system calls and writes paths differently (C:\Users\you against /home/you). Its shell speaks a different language too.

One footnote for the pedants, because I am one. For years Apple paid to have macOS certified as an official UNIX. The last version on record with The Open Group is macOS 26, registered in August 2025, and as of November 2026 Apple isn't on the current list. The kernel didn't change. The paperwork did.

why it matters when you write code

Your code ends up on Linux. When you deploy a website or the backend of an app, it lands on a rented Linux server. If your laptop behaves like that server, what works on the laptop tends to work there.

One set of commands covers the whole family. The bot that sent you this guide is a Python script I wrote on my Mac. It runs on an old laptop at home with Ubuntu on it and no screen attached. I copied the file across and it ran without a single line changed. Different kernels, same family.

AI coding tools work through the terminal. Claude Code, which I built my startup's app with, gets things done by running shell commands for you, and those are Unix commands. It does run on plain Windows now. Its docs still recommend installing Git for Windows first, because that comes with Git Bash, a port of the Unix shell, and Claude wants one to work in.

step 1: open a unix terminal

On a Mac. Press cmd and space, type terminal, hit enter. That window is a Unix shell (zsh, the default since 2019). There is nothing to install.

On Linux. You're already there. On Ubuntu it's ctrl + alt + T.

On Windows. Install WSL, the Windows Subsystem for Linux. Open PowerShell as administrator (right click it, then "Run as administrator") and run:

wsl --install

Restart when it asks. You need Windows 10 version 2004 or later, or Windows 11. The default setup is Ubuntu on WSL 2, which is a real Linux kernel running in a small virtual machine beside Windows. Open Ubuntu from the Start menu and pick a username and a password. The password won't show while you type it, which is normal. What you're looking at after that is a Linux prompt. Microsoft's install page has the manual route for older builds.

step 2: check which family you're in

uname -s

A Mac prints Darwin, the name of the open source core of macOS. Linux and WSL print Linux. Command Prompt prints the "not recognized" error, which is also an answer.

Then try this one:

date +%s

That long number is how every Unix system keeps time: seconds since midnight UTC on 1 January 1970. Your phone is counting the same number right now.

step 3: the first commands to learn

pwd            # where am i
ls -la         # list a folder
cd projects    # enter a folder
cd ..          # go up one
mkdir demo     # new folder
touch a.txt    # new empty file
cat a.txt      # print a file
cp a.txt b.txt # copy
mv b.txt c.txt # move or rename
rm c.txt       # delete
man ls         # manual, q quits

Options go after a dash and you can stack them. In ls -la, the l asks for the detailed view and the a includes hidden files, the ones whose names start with a dot. That stacking is the part PowerShell choked on earlier.

rm has no recycle bin. What you delete with it is gone.

Two habits will save you most of the typing. Press tab to finish a file name, and press the up arrow to bring back your last command.

step 4: pipes, the idea that made unix stick

Unix tools are small on purpose. Each one does a single job, and the | character sends the output of one into the next.

ls /usr/bin | wc -l
ls /usr/bin | grep zip

The first line counts the programs in that folder. The second lists only the ones with "zip" in the name. ls has no idea how to count or search, and it doesn't need to. You build the tool you need out of the ones you have.

Pipes went into Unix in 1973. It's still how log files get searched at 2am.

step 5: log into another computer

ssh you@your-server

Same commands, different machine. Servers have no screen, so this is how they get run. To practise you need something to log into. An old laptop with Ubuntu Server on it works, and so does a cloud server for a few dollars a month.

Windows has shipped with ssh since 2018, so you can reach a Linux server from PowerShell. The moment you connect you're in a Unix shell anyway.

Once the terminal stops feeling foreign, Claude Code and Git are the next two things to install.

what i'd word differently in the video

Sixty seconds rounds things off. Four places where the precise version is different.

I said Unix came from the late 1970s. Work on it started in 1969. The late 1970s is when BSD began, the branch the Mac descends from.

Linux is "in the family" by design and not by code. It was written from scratch, which is why the careful term is Unix-like.

Calling WSL buggy and slow was harsher than it deserves. WSL 2 is a real Linux kernel and most work on it is fast. The slow part is specific: reaching Windows files from the Linux side, meaning anything under /mnt/c. Microsoft's own docs say to keep projects in the Linux home folder for that reason.

"Any server in the world" should have been "most". Windows Server exists, and W3Techs has it at about 8% of websites.

honest limitations

A Mac is in the same family as a Linux server. It is not the same machine. macOS ships the BSD versions of the standard tools and Linux ships the GNU versions, so a few commands take different options (sed -i is the one that bites everybody). The Mac's file system also ignores upper and lower case in file names by default, and Linux doesn't. Code that runs on your Mac can still fall over on the server.

Don't buy a Mac for this. WSL is free, and what it gives you is actual Linux, which is arguably closer to the server than a Mac is. The Mac's edge is that Unix is the default and there's nothing to set up.

WSL has running costs of its own. It's a virtual machine, so it takes memory while it's open, and you now have two file systems to keep straight. Keep your projects inside the Linux one.

Windows is fine for plenty of things. Games run best there and a lot of engineering software only exists there. Anything built on Microsoft's own stack is at home too. "Sucks" was about one job, writing code that ends up on Linux. It was also the hook.

Open the terminal you already have and run uname -s. Start there.

← all guides

Done nicnonac.com 56.6k