Phase 00: Setup & Tooling

Linux for AI

Most AI runs on Linux. You need to know enough to not be stuck. Navigate the Linux file system and perform essential file operations from the command line. Manage file permissions with chmod and chown to resolve "Permission denied" errors. Install system packages with apt and set up a fresh GPU box for AI work. Identify macOS-to-Linux differences that commonly trip up developers working on remote machines. You develop on macOS or Windows. But the moment you SSH into a cloud GPU box, rent a Lambda instance, or spin up an EC2 machine, you land in Ubuntu. The terminal is your only interface. There is no Finder, no Explorer, no GUI. If you can't navigate the file system, install packages, and manage processes from the command line, you're stuck paying for idle GPU hours while googling "how to unzip a file in Linux." This is a survival guide. It covers exactly what you need to operate on a remote Linux machine for AI work. Nothing more. Linux organizes everything under a single root /. There is no C:\ or /Volumes. The directories you'll actually touch: Your home directory is or /home/your-username. Almost everything you do happens here. These are the 15 commands that cover 95% of what you'll do on a remote GPU box. rm -rf is permanent. There is…

Linux for AI: Most AI runs on Linux. You need to know enough to not be stuck. Navigate the Linux file system and perform essential file operations from the…

This free lesson is part of the AI Engineering from Scratch curriculum. Read the full explanation, run the lesson code, and verify the result in the interactive reader or from the repository source.

Browse the complete course catalog or open this lesson on GitHub.