---
title: The terminal looks like hacker territory. It's also where AI coding agents get work done
description: Learn what a terminal, shell and working directory are, practise safe first commands and understand the environment used by Claude Code and Codex.
date: 2026-11-22
url: https://caminhosolo.com.br/en/2026/11/terminal-for-ai-coding-beginners/
tags: [productivity, ai-coding, shell, beginners, ai-agents]
---


> **In brief · TL;DR:** A terminal is a text interface for instructing a computer. You do not need to memorise commands to work with Claude Code, Codex or OpenCode, but you should know which folder an agent is operating in, which files it may change and what an action does. Start with safe, observable operations.

## 01 — The discovery

You ask a coding agent to build a page for your business. It announces that it will inspect the project, search files, install dependencies and run tests. Messages fly by: `pwd`, `ls`, `git status`, `npm run build`. Suddenly, you are no longer sure what is happening on your computer.

**The terminal is one of the work surfaces that makes those actions visible.** It is neither a programming language nor an advanced chatbot. You type an instruction; a program interprets it and returns information.

Four concepts help:

- **Terminal:** the window or panel that displays command-line interaction. VS Code has an [integrated terminal](https://code.visualstudio.com/docs/terminal/getting-started).
- **Shell:** the command interpreter, such as Bash, Zsh or PowerShell.
- **Command:** a program or shell feature that performs an action, such as `ls` or `git`.
- **Working directory:** the folder in which a command executes. The wrong directory can mean working on the wrong project.

A `git status` command can run in a macOS terminal, Linux shell or VS Code. Some other commands differ by shell and operating system.

### Why learn this when agents can type for you?

Coding agents do more than suggest snippets. With permission, they inspect files, execute tools, change code and run checks. **A shell is often one route to those capabilities.** Other systems expose dedicated file and editing tools, or operate through an editor.

Knowing what `git diff` shows, how a test differs from a long-running web server, and what a permissions error means makes it much easier to supervise their work.

Imagine a solo founder asking an agent to update a landing page. If the resulting changes extend into global configuration, the founder can notice the mismatch before accepting them. This is not about becoming a Unix specialist. It is about **asking better questions when the execution diverges from the request**.

### The handful of commands that matter first

`pwd` shows your current location. `ls` lists files. `cd` changes directory. `git status` lists changes in a Git repository. `git diff` displays changes not yet staged. PowerShell offers `Get-Location`, `Get-ChildItem` and `Set-Location` for the first three operations.

Recognising those names does not mean running every command suggested by a page or agent. Commands can install software, send data over a network or delete files. **Read the proposed action before approving it.**

## 02 — The Solo verdict

**Learn terminal basics even if you never intend to become a full-time developer.** They provide a map of an agent's execution environment and help you distinguish observation, edits and running code.

You do not need dozens of commands. Start by locating the current project, checking Git changes and knowing how to stop a running task. The first goal is understanding, not server administration.

## 03 — The workbench: create a safe practice folder

**Environment:** Bash/Zsh on macOS or Linux, or PowerShell on Windows. No paid service required. Choose a new folder with no important files.

On macOS/Linux, run each line separately:

```bash
mkdir -p ~/ai-terminal-practice
cd ~/ai-terminal-practice
pwd
printf 'My first trail\n' > notes.txt
ls
cat notes.txt
```

**Expected result:** `pwd` shows the practice folder, `ls` lists `notes.txt`, and `cat` prints the message. The `>` symbol writes to the target file and replaces its contents if it exists — hence the new practice directory.

On Windows/PowerShell:

```powershell
New-Item -ItemType Directory -Force "$HOME\ai-terminal-practice"
Set-Location "$HOME\ai-terminal-practice"
Get-Location
Set-Content -Path notes.txt -Value "My first trail"
Get-ChildItem
Get-Content notes.txt
```

In an **existing Git repository**, try `git status` and `git diff` to inspect modifications. A `not a git repository` response simply means the current folder has no Git repository.

Now ask your coding agent: *"Before changing anything, show the project directory, list the files, and explain the read-only commands you plan to run. Make no changes."* Compare its explanation with the observed output.

**Next:** understand the runtime that gives an agent its tools, context and permissions — its *harness*.

References: [VS Code terminal](https://code.visualstudio.com/docs/terminal/getting-started), [terminal basics](https://code.visualstudio.com/docs/terminal/basics), [Git status](https://git-scm.com/docs/git-status). Guided exercise, not a performance benchmark.

