Demo mode This site is not live. It is currently being tested and developed. Nothing on here represents an offer.
← Exit course IT-101 Claude Code and Codex for Beginners
Course progress, 0 of 7 parts done0%

The terminal, and what a coding agent does

Download as PDF

Folders, paths and commands on Windows 11 and Linux Mint, before any agent touches them

Every name, email address, phone number and password in this module's examples is invented, and so is every web address ending in .example. Real organisations, such as OpenAI, Anthropic and Microsoft, are named only for what they themselves say.

1. From a chat window to an agent at your keyboard

Suppose you have been building a small web page with the help of an AI chat in your web browser. You describe what you want, the chat writes some code, and you copy it into a file, save it, open the page to see whether it works, and go back to the chat to say what went wrong. By the tenth round you have a file you only half recognise, a conversation so long that it has started to lose track of its own beginning, and no clear record of what changed.

That way of working has three built-in limits. A web chat knows only what you paste into it: it cannot open your files, so it guesses at everything you leave out. It gives back text, which you copy into the right file yourself, in the right place, without a slip. And a conversation cannot grow for ever: at some point it has to start again, and you explain the whole project from the beginning.

A coding agent works differently. It is a program that runs on your own computer. You start it inside a project folder, and from then on it can read the files in that folder, change them, create new ones and run commands, much as you could at the keyboard. To decide what to do, it sends your request, and the parts of your project it has read, over the internet to an AI model at its provider, and then acts on the answer. Instead of copying code back and forth, you describe the change in plain English and the agent does the reading and the typing, asking you before it acts.

This course teaches two coding agents side by side, with the same tasks:

  • Codex, made by OpenAI. Its terminal version is called Codex CLI ("CLI" means command-line interface: a program you use by typing). OpenAI's documentation describes it in these words: "Inspect code, make changes, run commands, and automate repeatable work without leaving your terminal."
  • Claude Code, made by Anthropic. Anthropic's documentation says: "Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools."

Both work in a terminal, the typing window this module is about, and both also come as desktop apps and can run on the web. Module 2 installs the terminal versions, and Module 6 covers the apps and the web.

Two words you will meet in every module

Model
The AI system at the provider's end that writes the replies. The agent is the program on your computer, and the model is what it consults, over the internet, to decide what to say and do. Each provider offers several models, and each agent shows you which one it is using.
Prompt (when talking to an AI)
What you type to the model: your request or question. Be careful, because the same word means something else in a terminal. Section 3 defines the terminal's prompt, the line that shows the terminal is waiting for you. One word, two meanings. In this course, "prompt" on its own means the terminal's line, and what you type to an agent is called your request.

The two licences, stated plainly

A licence says what you may do with a program's code. Codex CLI is open source under the Apache 2.0 licence: anyone can read its code, which OpenAI publishes on GitHub. Claude Code is not open source: the licence in Anthropic's repository reads "All rights reserved", and use of Claude Code is subject to Anthropic's Commercial Terms of Service. Neither licence changes what this course teaches. Both agents send your requests, and the parts of your project they read, to their provider's model, and both are used the same careful way.

A web chat A coding agent You Chat in your browser paste copy Your files you save by hand It sees only what you paste. It cannot open or check your files. You Agent on your computer asks Project folder reads, changes, runs AI model at the provider internet It reads the folder itself, and asks you before it acts.
Figure 1. A web chat sees only what you paste, and you carry its answers into your files by hand. A coding agent reads and changes the project folder itself, consulting the model at its provider, and asks you before it acts.
Worked example: one small job, done both ways

You keep a page of notes called notes.html, and you want today's date written at the top, as plain text in the form 11 November 2026.

With a web chat: six steps, all yours

  1. Open notes.html in a text editor, select everything and copy it.
  2. Paste it into the chat with the request "Add 11 November 2026 at the top of this page".
  3. Read the reply and copy the new version of the code.
  4. Go back to the editor and replace the old text with the new.
  5. Save the file.
  6. Open the page in your browser to check it. If something else changed, or the chat dropped a line it never saw, start again at step 1.

With a coding agent: one request, then your check

  1. Start the agent inside the folder that holds notes.html, and type: "Add the date 11 November 2026 as plain text at the top of notes.html."
  2. The agent opens notes.html itself and works out where the date belongs.
  3. It shows you the change it wants to make, the lines it will add, and asks whether it may.
  4. You read the change, and approve it or refuse it.
  5. You open the page in your browser and check it.

What the comparison shows: the agent removes the copying and pasting, and with them the chance of pasting into the wrong place. It does not remove your judgement. You still read what it proposes, and you still check the result, because an agent can misunderstand a request and change the wrong thing. The rest of this course is about doing those two checks well.

2. What an agent can do on your computer

Here is the fact that shapes everything else in this course. A coding agent runs as you, with your user account's permissions. So it can read, change and delete whatever you can read, change and delete, run programs and reach the internet, within whatever its settings allow. Those settings are called the permission mode in Claude Code, and the sandbox and approvals in Codex. Module 4 explains them in full.

That is what makes an agent useful: it can do real work in your folders. It is also why it must be set up with care. Both agents are built to stop and ask you before actions that need your say-so, such as changing a file or running a command, and you decide how much each may do without asking. In Module 2 you put each agent in the mode where it asks before it changes anything, and you keep it there while you learn.

Why the course always works in a practice folder

An agent started in a folder works in that folder and the folders inside it. If it misunderstands you in a practice folder full of test files, nothing that matters is lost. If you start it in a folder holding your tax return, your photographs or your business records, the same misunderstanding could cost you something real. So every project in this course gets its own folder inside one Projects folder, and nothing else lives there.

Keep secrets and other people's details out of project folders

A secret is anything that lets someone act as you: a password, an API key (a long code that lets a program use an online service in your name), a token, a one-time PIN or a private key. An agent reads files to answer your requests, and what it reads is sent to its provider to be processed by the model. A secret sitting in a project folder can therefore end up in a request without your noticing. The same goes for other people's personal information, such as a list of names with phone numbers or ID numbers. The rule from now on: secrets and other people's personal information never go into a project folder or a request. When a project needs example data, invent it.

Warning

Both agents have a mode that switches every safeguard off, so that the agent asks nothing and is fenced in by nothing. Both makers say those modes are only for isolated machines, set up for the purpose. The rule for this whole course is short: never run an agent with every safeguard switched off on a computer that holds anything that matters. Module 4 names these modes and explains why.

1 You ask 2 It reads 3 It plans 4 It asks permission 5 It acts 6 It shows you 7 You check One small change at a time Navy steps are yours. Step 4 is where you decide. After step 7, back to step 1.
Figure 2. The agent's cycle. You ask, it reads what it needs, plans, asks your permission, acts and shows you the result, and you check it before the next request.

Figure 2 is the rhythm you will settle into. Notice where you sit in it. You start the cycle with a clear request, you decide at step 4, and you close it at step 7. An agent that skips step 4 because its settings allow it to is still useful, but then step 7 carries the whole weight of your safety, which is why this course has you keep step 4 while you learn.

3. The terminal, the shell and the prompt

Both agents live in a terminal, so before you meet them you need to be at home there. A terminal is not a programming tool. It is simply a window where you type an instruction on one line and press Enter, instead of clicking a button.

Terminal
The window where you type commands and read the replies. On Windows 11 it is Windows Terminal. On Linux Mint it is the app called Terminal.
Shell
The program running inside the terminal that reads each command you type and carries it out. On Windows 11 this course uses PowerShell. On Linux Mint the shell is Bash.
Command
One instruction, typed on one line and run by pressing Enter. Commands are typed exactly, spaces and punctuation included.
Prompt
The line the shell shows when it is waiting for you. It tells you which shell you are in and which folder you are in, and you type after it.
Command Prompt (CMD)
Windows' older shell, still included in Windows 11. It looks much like PowerShell but understands different commands, so a command written for one can fail in the other.

Opening a terminal

Windows 11. Right-click the Start button, or press Win + X, and choose Terminal from the menu that appears. (Anthropic's terminal guide gives the same route.) If you do not see it, open the Start menu, type Terminal and open it from the results. Windows Terminal opens with PowerShell in its first tab, because PowerShell is its default profile. A new tab opens with Ctrl + Shift + T, and the small arrow beside the + button opens a tab with a different shell, such as Command Prompt.

Linux Mint. Press Ctrl + Alt + T, or open the menu, type Terminal and open it. The Terminal starts Bash.

Reading a prompt

The prompt is the quickest way to know where you are and which shell you are talking to. Here are the three prompts this course shows, each with you in the Projects folder:

PowerShell (Windows 11)

PS C:\Users\you\Projects>

Command Prompt (Windows 11)

C:\Users\you\Projects>

Terminal (Linux Mint)

you@laptop:~/Projects$

The letters PS at the start are the whole difference between the first two: with them you are in PowerShell, and without them you are in Command Prompt. In the Linux Mint prompt, you is your user name, laptop is the computer's name, ~/Projects is the folder you are in, and $ means the shell is waiting for an ordinary user's command. In every example in this course the user is called you and the computer laptop: yours will show your own names.

PowerShell in Windows Terminal PS C:\Users\you\Projects> PS: PowerShell the folder you are in type after this Command Prompt (CMD) C:\Users\you\Projects> no PS: this is CMD, not PowerShell type after this Bash in the Linux Mint Terminal you@laptop:~/Projects$ user computer the folder you are in $: type after this
Figure 3. Three prompts. PS at the start means PowerShell, its absence on Windows means Command Prompt, and the Linux Mint prompt names the user, the computer and the folder before the dollar sign.

Why the course uses PowerShell on Windows

Three reasons. Windows Terminal opens PowerShell by default, so it is what you see first. Both agents' makers write their recommended Windows install lines for PowerShell, as you will see in Module 2. And PowerShell answers to many of the same short command names as Linux, such as ls, cp and cat, which keeps the two systems close in this course. PowerShell does this with aliases: an alias is a short extra name for a longer command, so ls in PowerShell is another name for Get-ChildItem. Command Prompt has no such aliases, which is one reason the course avoids it.

Typing, pasting and reading the reply

Type a command after the prompt and press Enter. The shell runs it, prints any reply, and shows the prompt again when it is ready for the next one. Some commands print nothing at all when they work: silence usually means success. To paste a command you have copied, press Ctrl + V or right-click in Windows Terminal. In the Linux Mint Terminal, paste with Ctrl + Shift + V and copy selected text with Ctrl + Shift + C, because there Ctrl + C has another job.

Two keys save a great deal of typing. The Tab key completes a name: type the first few letters of a file or folder and press Tab, and the shell fills in the rest. (PowerShell may add .\ in front and a \ at the end of a folder's name: both are fine.) The Up arrow brings back the commands you typed earlier, one at a time, so you can run one again or correct a mistake without retyping it. And if a command runs on and you want it to stop, press Ctrl + C, on both systems.

4. Folders and paths

In the terminal you work with the same folders and files you see in File Explorer on Windows or the file manager on Linux Mint. Only the words change.

Directory
Another word for a folder. "The project directory" means the folder the project lives in.
Home folder
Your own folder, where your documents and settings live. On Windows 11 it is C:\Users\you. On Linux Mint it is /home/you, which is written ~ for short. PowerShell understands ~ as your home folder too.
Path
The address of a file or folder, written as text: the folders you pass through to reach it, in order.
Absolute path
A path that starts from the very top, so it means the same place wherever you are: C:\Users\you\Projects\terminal-practice\todo.txt on Windows, or /home/you/Projects/terminal-practice/todo.txt on Linux Mint. A Linux path starting ~/, such as ~/Projects/terminal-practice/todo.txt, starts from your home folder and is treated the same way.
Relative path
A path that starts from the folder you are in now. If you are in Projects, then terminal-practice\todo.txt on Windows, or terminal-practice/todo.txt on Linux Mint, reaches the same file.

Two short names help with relative paths. A single dot, ., means "this folder". Two dots, .., mean "the folder one level up". So if you are in the notes folder inside terminal-practice, the path ..\todo.txt on Windows, or ../todo.txt on Linux Mint, means "go up one level and find todo.txt there". You can chain them: ..\.. goes up two levels.

The slash points different ways

Windows separates folder names with a backslash, \. Linux uses a forward slash, /. PowerShell also accepts forward slashes, but this course writes Windows paths with backslashes so that they match what File Explorer shows. When you copy a path from one system to the other, change the slashes.

Spaces, and why the course uses hyphens

The shell uses spaces to tell one word of a command from the next. A folder called My Projects therefore looks to the shell like two names, My and Projects, and cd My Projects fails. You can wrap such a name in quotation marks, cd "My Projects", but it is easy to forget. This course names every folder and file in small letters joined by hyphens, such as terminal-practice, and never uses spaces.

Capital letters matter on Linux

Linux treats Notes and notes as two different names, and both can exist side by side in the same folder. Windows treats them as the same name. So on Linux Mint, cd projects fails when the folder is called Projects, while on Windows it works. Using small letters for everything except the course's Projects folder keeps you out of trouble on both.

Hidden files and file extensions

On Linux, a file or folder whose name starts with a dot, such as .git or .bashrc, is hidden: an ordinary listing leaves it out. ls -a shows everything, hidden names included. On Windows, being hidden is a setting on the file rather than part of its name, and ls -Force in PowerShell shows hidden items. You will meet hidden folders often in this course: Git keeps a project's history in one called .git, and each agent keeps its settings in a hidden folder in your home folder.

A file extension is the part of a file's name after the last dot, such as .txt for plain text or .html for a web page. It tells the computer which program opens the file. File Explorer can hide extensions, which makes index.html look like plain index. To see them on Windows 11, open File Explorer and select View, then Show, then File name extensions. In the terminal you always see the full name.

C:\Users\you or ~ your home folder Projects every practice project lives here terminal-practice notes plans.txt archive todo.txt hello-claude, hello-codex (Module 2) Absolute, Windows C:\Users\you\Projects\terminal-practice\notes\plans.txt Absolute, Linux Mint /home/you/Projects/terminal-practice/notes/plans.txt Relative, from inside terminal-practice: notes\plans.txt or notes/plans.txt
Figure 4. The course's folders. The same file, plans.txt, has one absolute path on each system, and a much shorter relative path from inside terminal-practice.

5. Ten commands, on both systems

Ten commands are enough to move around your folders and manage files. On Windows, the short names in the table are PowerShell's aliases, so they work in PowerShell and not in Command Prompt.

Table 1. The ten commands of this module
JobPowerShell (Windows 11)Bash (Linux Mint)
Where am I?pwd (short for Get-Location)pwd
What is here?ls or dir (short for Get-ChildItem), ls -Force to show hidden itemsls, and ls -a to show hidden files
Move into a foldercd notes, cd .., cd ~cd notes, cd .., cd ~
Make a foldermkdir notesmkdir notes
Copycp todo.txt archive\todo-old.txt (short for Copy-Item)cp todo.txt archive/todo-old.txt
Move or renamemv ideas.txt plans.txt (short for Move-Item)mv ideas.txt plans.txt
Deleterm shopping.txt (short for Remove-Item)rm shopping.txt
Show a filecat todo.txt (short for Get-Content)cat todo.txt
Clear the screencls or clearclear
Stop a running commandCtrl + CCtrl + C

"Move or rename" is one job because renaming is moving a file to a new name in the same folder. mv ideas.txt plans.txt renames, and mv ideas.txt archive moves the file into the archive folder.

Opening files, folders and pages from the terminal

You will often want to see a file in an ordinary program. These commands open things for you:

Table 2. Opening things from the terminal
JobPowerShell (Windows 11)Bash (Linux Mint)
Open a text file in a plain editornotepad todo.txt (Notepad)xed todo.txt (Text Editor)
Open the current folder in the file managerexplorer .xdg-open .
Open a web page in your browserstart index.htmlxdg-open index.html

In PowerShell, start is an alias for Start-Process, which opens a file with the program your computer uses for that kind of file, so a web page opens in your browser. If you give Notepad a file that does not exist yet, it offers to create it. Text Editor on Linux Mint opens an empty file with that name, which is created when you save.

Worked example: building the practice folder by command, on both systems

This builds the folder you will use in this module's practical work, terminal-practice, step by step. The transcripts show the prompt, then what you type, then the reply. They are examples: your dates, times and sizes will differ, and PowerShell's listings are trimmed a little.

Step 1: make the Projects folder and the practice folder

PowerShell (Windows 11)

PS C:\Users\you> cd ~
PS C:\Users\you> mkdir Projects

    Directory: C:\Users\you

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        2026/11/11     10:01                Projects

PS C:\Users\you> cd Projects
PS C:\Users\you\Projects> mkdir terminal-practice
PS C:\Users\you\Projects> cd terminal-practice
PS C:\Users\you\Projects\terminal-practice> mkdir notes
PS C:\Users\you\Projects\terminal-practice> mkdir archive

Terminal (Linux Mint)

you@laptop:~$ cd ~
you@laptop:~$ mkdir Projects
you@laptop:~$ cd Projects
you@laptop:~/Projects$ mkdir terminal-practice
you@laptop:~/Projects$ cd terminal-practice
you@laptop:~/Projects/terminal-practice$ mkdir notes
you@laptop:~/Projects/terminal-practice$ mkdir archive

PowerShell's mkdir prints a short listing of the folder it made (shown once above, then left out). Bash prints nothing. Both mean success. Notice how each prompt changes as you move: it always shows where you are.

Step 2: make three text files

Open each file in the plain editor, type its lines, save and close. On Windows, choose Yes when Notepad offers to create the file.

PowerShell (Windows 11)

notepad todo.txt
notepad notes\shopping.txt
notepad notes\ideas.txt

Terminal (Linux Mint)

xed todo.txt
xed notes/shopping.txt
xed notes/ideas.txt

Into todo.txt type three things you have to do, one to a line. Into shopping.txt type bread, milk and tea, one to a line. Into ideas.txt type two ideas of your own.

Step 3: look at what you have

PowerShell (Windows 11)

PS C:\Users\you\Projects\terminal-practice> ls

    Directory: C:\Users\you\Projects\terminal-practice

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        2026/11/11     10:05                archive
d-----        2026/11/11     10:07                notes
-a----        2026/11/11     10:06             52 todo.txt

Terminal (Linux Mint)

you@laptop:~/Projects/terminal-practice$ ls
archive  notes  todo.txt
you@laptop:~/Projects/terminal-practice$ ls notes
ideas.txt  shopping.txt

In PowerShell's listing, a d at the start of the Mode column marks a folder (a directory).

Step 4: copy, rename and delete

PowerShell (Windows 11)

cp todo.txt archive\todo-old.txt
mv notes\ideas.txt notes\plans.txt
rm notes\shopping.txt

Terminal (Linux Mint)

cp todo.txt archive/todo-old.txt
mv notes/ideas.txt notes/plans.txt
rm notes/shopping.txt

None of the three prints anything when it works.

Step 5: check the result, and show a file

Terminal (Linux Mint)

you@laptop:~/Projects/terminal-practice$ ls archive notes
archive:
todo-old.txt

notes:
plans.txt
you@laptop:~/Projects/terminal-practice$ cat todo.txt
Book the car service
Pay the electricity account
Phone the plumber about the geyser

In PowerShell, list each folder on its own with ls archive and ls notes, then show the file with cat todo.txt: the three lines appear just the same. The folder now holds exactly what this module's practice folder should: notes with plans.txt, archive with todo-old.txt, and todo.txt.

Warning

Deleting with rm on Linux Mint or rm (Remove-Item) in PowerShell does not send the file to the Recycle Bin or the Trash. It is gone, and there is no undo. Before you delete, list the folder and read the name twice. Never add -r in Bash, or -Recurse in PowerShell, which delete a folder and everything inside it, until you have looked at what is in it. Module 3 gives you a way back for project files: Git.

Keep this: the ten commands
The ten commands, side by side
JobPowerShellLinux Mint
Where am I?pwdpwd
What is here?ls (ls -Force for hidden)ls (ls -a for hidden)
Movecd folder, cd .., cd ~cd folder, cd .., cd ~
Make a foldermkdir namemkdir name
Copycp from tocp from to
Move or renamemv from tomv from to
Delete (no undo)rm namerm name
Show a filecat namecat name
Clear the screenclsclear
Stop a commandCtrl + CCtrl + C

6. Reading what the terminal tells you

Sooner or later a command answers with an error. An error is not a disaster: it is the shell telling you exactly what it could not do. Read the first line slowly. It nearly always names the problem.

Table 3. Messages you will meet, and what they mean
The message containsWhereWhat it usually means
is not recognized as the name of a cmdletPowerShellThe shell has no command by that name: a typing mistake, a program that is not installed, or one that is installed but not yet on the PATH (below).
is not recognized as an internal or external commandCommand PromptThe same, in CMD. Often it means you typed a PowerShell command into CMD.
command not foundBashThe same, on Linux Mint.
Cannot find pathPowerShellThe file or folder you named is not there: a typing mistake, or you are in a different folder from the one you think.
No such file or directoryBashThe same, on Linux Mint.
Permission denied, or Access to the path ... is deniedBash, PowerShellYour user account may not change that file or folder, usually because it belongs to the system.

When you see "cannot find" or "no such file", run pwd and ls first. Nine times out of ten you are in the wrong folder, or the name is spelt differently (on Linux, remember the capital letters).

The PATH, and why a new program may need a new window

When you type a command such as notepad or git, how does the shell find the program? It looks through a list of folders called the PATH: the list of folders where the shell looks for programs. If the program is in one of them, it runs. If not, you get "not recognised" or "command not found", even though the program is on your computer.

When you install a new program, its installer usually adds its folder to the PATH. But a terminal window reads the PATH once, when it opens. A window that was already open before the install does not know about the change. So the first thing to try after installing anything is simple: close the terminal, open a new one, and type the command again. In Module 2 you will do exactly this after each install.

sudo, and Run as administrator

Some changes affect the whole computer, such as installing a program for every user from Linux Mint's own software sources. On Linux Mint, putting sudo in front of a command runs that one command as the administrator, after you type your own password. (The terminal may show nothing as you type the password, or a star for each letter: just type it and press Enter.) On Windows, the equivalent is choosing Run as administrator, or Terminal (Admin), which asks Windows for permission first.

This course almost never needs either. You will use sudo on Linux Mint only to install Git and two small helper programs in Module 2, and neither agent's own installer needs administrator rights on either system. That makes a useful warning sign: an install line for one of these agents that asks for sudo or administrator rights is not the one from the maker's page.

Worked example: fixing "command not found", two ways

Case 1: a typing mistake

You meant to show your to-do list, and typed cta instead of cat. These are abridged examples of what each shell says:

PowerShell (Windows 11)

PS C:\Users\you\Projects\terminal-practice> cta todo.txt
cta : The term 'cta' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.

Terminal (Linux Mint)

you@laptop:~/Projects/terminal-practice$ cta todo.txt
cta: command not found

Diagnosis: the message names the word it did not know, cta, so look at that word first. Fix: press the Up arrow to bring the command back, correct it to cat, and press Enter. (Linux Mint may also suggest a similar command it knows: read the suggestion, but you decide.)

Case 2: a program installed a minute ago

You have just installed a program called newtool in a terminal window, and in the same window you type newtool --version. The shell answers "not recognised" or "command not found", although the installer said it had finished.

Diagnosis: the spelling is right and the install finished, so the likeliest cause is that this window read the PATH before the installer changed it. Fix: close the terminal, open a new one, and run newtool --version again. If it still fails, the installer did not add its folder to the PATH. Do not start copying fixes from forums: look in the maker's own documentation, which for both agents has a page on exactly this. Module 2 takes you to those pages.

7. Copying commands safely

You will paste many commands in this course. Pasting a command into a terminal is like signing a document: it runs with your permissions, at once, and some commands cannot be undone. So the question is never only "does this command work?" but "where did it come from, and do I understand what it does?"

Where this course's commands come from

Every install command in this course comes from the makers' own documentation, at their own addresses: code.claude.com and claude.ai for Claude Code, learn.chatgpt.com, chatgpt.com, developers.openai.com and github.com/openai/codex for Codex, and git-scm.com, docs.github.com and cli.github.com for Git and GitHub. When you install something, open the maker's page yourself, by typing its address or from your bookmarks, and copy the command from there. The course shows the commands as they stood in November 2026: if the page shows something different, follow the page.

Reading an install command

Both agents install with a single line that has the same shape. On Linux Mint, Claude Code's line is:

Terminal (Linux Mint)

curl -fsSL https://claude.ai/install.sh | bash

Read it in four parts. curl is a program that downloads from the web, and -fsSL is four switches together that make it download quietly, follow the page if it has moved, and stop rather than carry on when something goes wrong. Then comes the address it downloads from. The |, called a pipe, hands whatever was downloaded straight to the next program. And bash is that next program: the shell itself, which runs what it receives as a list of commands. So the whole line means "download a program from this address and run it at once". Codex's Linux line ends in sh instead of bash: another shell, doing the same job. On Windows the PowerShell line has the same shape: irm (short for Invoke-RestMethod) downloads, and iex (short for Invoke-Expression) runs what was downloaded. Anthropic's terminal guide puts it plainly: "irm fetches the file and iex runs it."

This shape is normal and widely used. But it means you never see the program before it runs. You are trusting the address completely. The address is everything.

Linux Mint curl -fsSL https://claude.ai/install.sh | bash 1 downloader 2 the address you trust 3 pipe 4 runner Windows PowerShell irm https://claude.ai/install.ps1 | iex 1 2 3 4 Together: download a program from this address and run it at once. You never see it before it runs, so check part 2 every time.
Figure 5. The anatomy of an install command. Whatever the system, the line downloads a program and runs it straight away, so the address in part 2 decides whether it is safe.

Lookalike addresses

Criminals know that people search for "install Claude Code" or "Codex download" and paste the first command they find. They can buy adverts that appear above real search results, and make pages that copy a maker's look, with an install line that points at their own address instead. Such an address often contains the product's name, so it looks right at a glance. Read an address the way you would read a web address in a suspicious message: find the part just before the first single slash after https://, and read it from the right. In https://claude.ai/install.sh the site is claude.ai, which is Anthropic's. In https://claude-code-download.example/setup.sh the site is claude-code-download.example, which has nothing to do with Anthropic, however much of the name it borrows.

Other places commands come from

Commands also arrive in video comments, forum replies, social media posts and messages from people you do not know. Some are helpful and many are copied from the makers' pages. But a comment can be edited after it was written, a forum answer can be years out of date, and a stranger who messages you a "fix" may be setting a trap. Treat any command from these places as unchecked until you have found the same command in the maker's documentation, and never run one that deletes things, asks for administrator rights or downloads from an address you do not recognise. A colleague's email deserves care too: email accounts can be taken over, so check a command a colleague sends against the official page before you run it.

The same caution applies to signing in. When an agent needs you to sign in, it opens a browser window itself, on its provider's own website. Sign in only there. A message or email that asks for your password, a one-time PIN or a sign-in code is not how either provider works.

Table 4. Is this command safe to run? A decision guide
What you seeVerdictWhy, and what to do
A command from the maker's own documentation, opened by you at its real address, that you can explainSafeThis is the source the course uses. Still read it before you press Enter.
A command from this course that only looks at things, such as pwd, ls or cat todo.txtSafeIt reads and shows. It changes nothing.
An install line in a video comment, a forum or a colleague's email, with what looks like the maker's addressRiskyIt may be genuine, but you cannot tell from where it is. Find the same line on the maker's page and copy it from there.
A command that changes a setting for good, such as one that switches off a Windows protection, offered as a quick fixRiskyFind out what it changes and whether the maker's documentation asks for it. This course never needs one.
An install line whose address is not the maker's, or one that adds sudo or asks for administrator rightsStop and checkThe address decides what runs. Neither agent's installer needs administrator rights. Do not run it.
Any command that deletes widely, such as rm -rf on a folder, from someone you do not knowStop and checkThere is no undo. Do not run it, however urgent the person makes it sound.
Worked example: two install lines, read part by part without running either

You are getting ready for Module 2. A search shows you two ways to install Claude Code on Linux Mint. The first is on Anthropic's documentation site, which you opened by typing code.claude.com. The second is in a sponsored result at the top of the search page, with a heading that promises a "quick install".

Line A, from Anthropic's documentation

curl -fsSL https://claude.ai/install.sh | bash

Line B, from the sponsored result

curl -fsSL https://claude-code-download.example/setup.sh | sudo bash

The downloader: both use curl -fsSL. No difference, and no clue. The address: line A's site, read from the right before the first single slash, is claude.ai, Anthropic's own. Line B's is claude-code-download.example, which belongs to whoever registered it. It borrows the product's name, and that proves nothing. The runner: line A hands the download to bash, running as you. Line B hands it to sudo bash, which asks for your password and then runs whatever was downloaded as the administrator of the whole computer. Anthropic's documentation says that you do not need to run as Administrator.

Verdicts: line A is Safe: the maker's page, the maker's address, no administrator rights, and you can explain every part. Line B is Stop and check: a stranger's address, a sponsored result, and a request for administrator rights that the real installer never makes. You would run neither today. In Module 2 you will run line A, copied fresh from Anthropic's page.

8. The folder you will work in

Everything you make in this course lives in one folder, Projects, in your home folder: C:\Users\you\Projects on Windows 11 and ~/Projects on Linux Mint. You made it in the worked example in section 5. Each project gets a folder of its own inside it: terminal-practice now, hello-claude and hello-codex in Module 2, then a recipe website and, in Module 5, a website for someone else.

The reason is the one you met in section 2. An agent treats the folder you start it in as its place of work. In Manual mode, Claude Code asks before its file tools read or write outside the folder where it was started, and Codex's workspace is the folder it starts in, together with temporary folders. Starting each agent in a project's own folder keeps its attention, and any mistake, inside that project. Never start an agent in your home folder, where everything you own would be within its reach. Module 2 shows what each agent does when you try.

You now have what the agents need from you: a terminal you can open, a shell you can read, folders you can move around and manage, paths you can write both ways, and the habit of reading a command before you run it. In Module 2 you install Git and both agents, using exactly the habits from section 7, and start your first session with each.

Sources

  • OpenAI, Codex CLI: https://learn.chatgpt.com/docs/codex/cli (read on 11 November 2026)
  • OpenAI, Agent approvals and security: https://learn.chatgpt.com/docs/agent-approvals-security (read on 11 November 2026)
  • OpenAI, Codex repository and licence: https://github.com/openai/codex (read on 11 November 2026)
  • Anthropic, Claude Code overview: https://code.claude.com/docs/en/overview (read on 11 November 2026)
  • Anthropic, Terminal guide for new users: https://code.claude.com/docs/en/terminal-guide (read on 11 November 2026)
  • Anthropic, Claude Code security: https://code.claude.com/docs/en/security (read on 11 November 2026)
  • Anthropic, Claude Code setup: https://code.claude.com/docs/en/setup (read on 11 November 2026)
  • Anthropic, Claude Code repository and licence: https://github.com/anthropics/claude-code (read on 11 November 2026)
  • Microsoft, Windows Terminal installation: https://learn.microsoft.com/en-us/windows/terminal/install (read on 11 November 2026)
  • Microsoft, about_Aliases: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_aliases (read on 11 November 2026)
  • Microsoft, Get-ChildItem, Copy-Item, Move-Item, Remove-Item, Get-Content, Get-Location, Start-Process and New-Item reference pages: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/ (read on 11 November 2026)
  • Microsoft, Common file name extensions in Windows: https://support.microsoft.com/en-us/windows/common-file-name-extensions-in-windows-da4a4430-8e76-89c5-59f7-1cdbbc75cb01 (read on 11 November 2026)
  • GNOME, Terminal help, copy and paste: https://help.gnome.org/users/gnome-terminal/stable/txt-copy-paste.html.en (read on 11 November 2026)
  • Linux Mint, Linux Mint 22.3 release notes: https://www.linuxmint.com/rel_zena.php (read on 11 November 2026)