Chapter 05 / 10Setup

Basic Linux guide

Learn the small set of Linux terminal habits that make AI agent work safer.

14 min read05 / 10

Goal

Learn the small set of Linux terminal habits that make AI agent work safer.

Before you start

  • A terminal
  • No destructive commands unless you fully understand them

Linux shows up in AI work even if your laptop is Windows or macOS. Many hosting servers, containers, and terminal examples use Linux-style commands.

The map in your head

Remember three ideas:

  • A folder is also called a directory.
  • The terminal is always “inside” one current directory.
  • Commands usually act on the current directory unless you give another path.

Safe commands to know

Print where you are:

Windows PowerShellReview before running
pwd

Expected result: a folder path appears.

List files:

Windows PowerShellReview before running
ls

Expected result: files and folders in the current directory appear.

Move into a folder:

Windows PowerShellReview before running
cd my-project

Expected result: your prompt changes to show the new folder.

Slow down around destructive commands

Be careful with commands that remove, overwrite, or force changes. If an AI agent suggests rm, del, rmdir, git reset, or anything with --force, stop and ask for an explanation first.

Official references

Lesson checklist

Tick these as you verify them. Signed-in students sync to the workshop dashboard; everyone else keeps progress in this browser.

Local progress

Save this lesson on this device.

No account needed yet. This only stores the lesson slug in your browser, not commands, secrets, or project files.