Terminal
A terminal is a text interface to a shell and other programs, not a separate programming language.
Understand the idea
A terminal presents a text interface for entering commands and seeing output. It usually hosts a shell: a program that interprets the command line. The terminal window and the shell are different parts of the setup. Windows Terminal can host PowerShell or Command Prompt; a macOS or Linux terminal can host a shell such as zsh or Bash.
A prompt marks where a shell is ready for your next command. Tutorials sometimes show a symbol such as $ before the command. That symbol is part of the example prompt, not something to copy automatically. Your own prompt may contain a username, folder name, or other text.
Opening a terminal usually starts a shell. Commands shown in a tutorial do not run merely because you opened that window. Read a command’s purpose before entering it, and keep source-code text in its editor rather than pasting it into an unrelated shell.
Key points
- 01 The terminal supplies the text interface.
- 02 A shell interprets commands entered in that interface.
- 03 Different shells may use different commands and syntax.
- 04 The prompt is separate from the command you type.
- 05 Output is a program’s response, not another instruction to type.
Worked example
Identify the parts of a terminal exchange
A worked example using sample data. Nothing here runs on your computer.
Example prompt: $
Typed command: pwd
Displayed output: /home/learner/human-labThe command is pwd.
The path is output.
The prompt is not part of the command.This labels an illustrative POSIX-shell exchange. It is not a block of commands to paste. A PowerShell or Command Prompt session can look different.
Visual
flowchart LR H["You type a command"] --> T["Terminal"] T --> S["Shell interprets it"] S --> O["Output returns to terminal"]
Follow the primary sources
An original HWTL explanation, prepared and independently checked with AI against the sources below. This lesson has not yet been tested with human learners.
Source review completed 2026-10-07.
- Microsoft Learn: Windows Terminal overview
Windows Terminal is a host application for shells including PowerShell, Command Prompt, and Bash.
- MDN: Command line crash course
Terminal access, shell/prompt distinction, and basic command-line interaction.
Practice · predict the result
Separate the prompt from the command
A small test from your robot instructors. Hints are welcome.
What you will practice: Distinguish a terminal host, its shell prompt, the typed command, and the command output.
Sample scenario. Synthetic POSIX-shell session hosted in a terminal. $ is already the displayed prompt. Plain pwd is available and succeeds. Do not actually paste any choice into a terminal.
- Host and interpreter
A terminal window is displaying a POSIX-style shell session.- Current folder
/home/learner/human-lab- Tutorial command line
$ pwd- Prompt convention
$ is the tutorial's shell prompt marker.
A tutorial shows $ pwd in a terminal window. With the stated working directory, which text should be typed and which text is the result?
Attempts stay on this browser and are kept separate from lesson views and your self-reported knowledge.
Sources and exercise scope
- Microsoft Learn: Windows Terminal overview
A terminal application hosts command-line shells; the host and shell are different parts of the interface.
- POSIX.1-2024: pwd
Plain pwd reports the current working directory as an absolute path, followed by a newline.
- MDN: Command line crash course
Terminal, shell, and command-line distinctions; an absolute path starts at a root while a relative path depends on the working directory.
Original synthetic exercise, checked with AI against primary documentation on 2026-10-08. Human learner validation is pending. A result here records this attempt; it does not establish mastery.
Make this lesson yours
Save it for later, or tell your robot what would help.
This correction stays on this browser. Browse all concepts if the topic is missing.
Familiarity is your own assessment. To use it in your coding tool, download your updated learning profile.
Choices are saved on this browser. They do not sync to your account or coding tool.
Lesson diagnostics
Download the public lesson material, resource choices, and robot text selected for this page. The file does not include your chat, code, or saved profile. Nothing from the trace is uploaded.
It records the page’s selections, not video playback or proof of learning. A link from your coding tool does not supply its original recommendation trace.
Enable JavaScript to create a trace on this device.