What even is a terminal?

A text window where you talk to your computer by typing. No clicking, just words.

Normally you tell your computer what to do by clicking icons and menus. The terminal lets you do the same things by typing short instructions called commands. It looks old-school, and developers love it because it is fast, precise, and easy to automate.

The pieces

  • Terminal: the window itself.
  • Shell: the program inside the window that reads your commands (common ones are bash and zsh).
  • Prompt: the little $ or % that says "I'm ready for a command".

A command has up to three parts: the command (what to do), flags (options that change how it works), and arguments (what to do it to).

ls -l ~/projects

ls = the command, -l = a flag (long format), ~/projects = the argument (which folder).

Tip: Looking around can't break anything. Commands like pwd and ls only read information. We'll flag the risky ones when we meet them.

Quick check

In ls -l ~/projects, what is -l?

  1. The command
  2. A flag that changes how ls works
  3. The folder to list
  4. A typo

Answer: A flag that changes how ls works. Flags start with a dash and tweak a command's behaviour. Here -l asks ls for the long, detailed format.