Skip to content

The terminal looks like hacker territory. It's also where AI coding agents get work done

Learn what a terminal, shell and working directory are, practise safe first commands and understand the environment used by Claude Code and Codex.

The terminal looks like hacker territory. It's also where AI coding agents get work done
In this article

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.

Advertisement Precivo

01 — The discovery

What changed, who it is for and why it matters.

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.
  • 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

Our straight take: is it worth your time?

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.

Advertisement Flokin

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:

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:

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, terminal basics, Git status. Guided exercise, not a performance benchmark.

More in Tutorials

See all

Advertise

Solopreneurs, makers and creators who use AI and automation every day. Editorial and media formats for brands that bring real value to this reader.

Talk to us about formats

Every partnership goes through editorial approval. No misleading promises.

  1. Sponsored articles Useful content, in the Caminho Solo tone and standard.
  2. Banners and display Placements in strategic areas of the site.
  3. Commercial partnerships Series sponsorships, affiliate partnerships, and custom campaigns.
  4. Native content Guides, tutorials or comparisons featuring your product.

Get in touch

Let's talk

Have questions, suggestions, or want to collaborate? Fill out the form below and we'll get back to you soon.

Prefer email?

contato@caminhosolo.com.br

We respect your privacy. Your data will only be used to respond to your message.