Terminal Basics for Beginners
A terminal is just a window for typing commands instead of clicking. AI coding tools like Claude Code live there - a little terminal knowledge goes a long way.
What a terminal actually is
A terminal is a window where you type commands instead of clicking icons. You type a line of text, press Enter, and the computer does exactly that - no menus, no mouse. It looks intimidating at first, but it's really just a very direct way to talk to your computer.
Opening it
On a Mac, press Cmd+Space to open Spotlight, type "Terminal", and press Enter - or use Launchpad or Finder โ Applications โ Utilities โ Terminal (the path Apple's guide documents). On Windows, press Win+X and choose Windows PowerShell (or Terminal) from the menu.
A handful of commands to start with
pwd- shows which folder you're currently inls(Mac/Linux) ordir(Windows) - lists what's in the current foldercd foldername- moves into a folder,cd ..moves back upmkdir name- creates a new foldertouch name(Mac/Linux) - creates an empty filerm name- deletes a file (careful, there's no trash bin here)cp source target- copies a fileclear- wipes the screen so you can start fresh
Why AI coding tools live here
Tools like Claude Code or Codex CLI run as terminal programs. You start them by typing one command in a project folder, and everything they do - reading files, running tests, installing packages - happens through the same commands you just learned. Knowing the terminal even a little makes it much easier to understand what an AI agent is actually doing.
EXAMPLE
$ pwd /Users/you/projects/my-app $ ls README.md package.json src $ cd src $ mkdir utils $ ls utils
๐ ๏ธ EXERCISE โ TRY IT YOURSELF
Open a terminal and navigate through your file system using only commands - no clicking.
- Open your terminal (Terminal on Mac, Windows Terminal or PowerShell on Windows).
- Type `pwd` and press Enter to see where you are.
- Create a new folder with `mkdir test-folder`, then move into it with `cd test-folder`.
- Create an empty file inside it (`touch note.txt` on Mac/Linux, or `type nul > note.txt` on Windows).
- Move back up with `cd ..` and list the contents with `ls` (or `dir`) to confirm your folder is there.
โ SELF-CHECK
- โ Could you switch between folders without using the mouse?
- โ Did you understand the difference between `ls`/`dir` and `pwd`?
- โ Do you know why an AI agent sees the same exit code as you when a command fails?
QUICK QUIZ
What does the command `cd ..` do?
SOURCES
- Claude Code Docs: Terminal Guide for New Users โ code.claude.com
- freeCodeCamp: The Command Line for Beginners โ www.freecodecamp.org
- Apple Support: Open Terminal on Mac โ support.apple.com
- Microsoft Learn: Windows Terminal installieren โ learn.microsoft.com