What is the terminal?
What the terminal is, why developers use it, how to open it on Linux, macOS and Windows, and your first command.
Talking to your computer with text
You usually use your computer with the mouse: you click folders, drag files and press buttons. The terminal is another way to do the same things: you type an instruction and the computer answers with text.
Those instructions are called commands. For example, this command asks “who am I?”:
whoamiAnd the computer answers with your user name:
devThat’s all there is to it: you type, press Enter and read the answer.
Why do developers use it?
It looks harder than clicking, but it has huge advantages:
- It’s faster for many tasks: renaming 200 photos or finding a word in 1,000 files takes a single line.
- It can be repeated and automated: a command you type today can be saved in a file (a script) and run again tomorrow.
- It’s everywhere: the servers where websites live usually have no screen or mouse, only a terminal.
- Many tools only work this way: Git, Docker, Python, Node and almost every programming tool are used with commands.
That’s why this is the first course of the path: what you learn here you’ll use in the Python, Git and Docker courses, and in your daily work.
Terminal, shell, console… which is which?
You’ll hear several words that people use almost as synonyms:
| Word | What it is |
|---|---|
| Terminal | The window where you type and read text. |
| Shell | The program that understands your commands and runs them. On Linux the most common one is bash; on macOS, zsh. |
| Command line or console | The way of working by typing commands, in general. |
Day to day, “open the terminal” and “open the console” mean the same thing. In this course we use bash, the shell you’ll find on almost any Linux server.
How to open the terminal on your computer
You don’t need to install anything to follow the course: every lesson brings a practice terminal. But it’s good to open one on your own computer too:
- Linux (for example Ubuntu): press
Ctrl + Alt + T, or search for “Terminal” in your applications. - macOS: open Spotlight with
Cmd + Space, type “Terminal” and press Enter. It uses zsh, which is almost identical to bash: every command in this course works the same. - Windows: search for “PowerShell” or “Terminal” in the Start menu. PowerShell uses different commands from Linux (you’ll see them in the last lesson).
On Windows: install WSL
To follow this course (and the Git, Docker and Python ones) on your own Windows computer, the best option is WSL (Windows Subsystem for Linux): a real Linux inside Windows. Open PowerShell as administrator and run wsl --install. After restarting you’ll have Ubuntu in the Start menu, with bash and every command you’re about to learn.
The prompt: the terminal is waiting
When the terminal is ready for a command, it shows the prompt. In our practice terminal it looks like this:
dev@zerep:~$devis the user you’re working as.zerepis the computer’s name.~is the folder you’re in. That symbol, called tilde, means “your home folder”. You’ll see it in detail in module 2.$means you can type.
On your computer the prompt will show your user and your computer’s name. On macOS it usually ends in % instead of $. It doesn’t matter: it means the same.
Don't copy the $
In tutorials you’ll see commands written like $ whoami. The $ stands for the prompt: don’t type it. Only type what comes after it.
Your first command
Let’s use the practice terminal. Click inside the black box, type whoami and press Enter.
You can also click the buttons next to Try: below the terminal: they type the command for you, and you just press Enter.
Try it: Ask the computer who you are, what day it is, and repeat a greeting with echo.
whoamianswers with your user.dateshows the date and time.echorepeats on screen the text you give it. It looks useless, but you’ll use it a lot.
You won't break anything
The practice terminal runs only in your browser: it doesn’t touch your computer or any server. If something looks weird, press Reset (top right of the box) and start again. Experiment without fear.
Test what you learned
Challenge
- Find out your user name.
- Show today’s date.
- Use
echoto print:My first day in the terminal.
Show a solution
whoami
date
echo My first day in the terminaldev
Mon Oct 19 10:30:12 CST 2026
My first day in the terminalThe date you see will be today’s, of course.
