Terminal and commandsUnit 1 of 2
Foundations20 minIn reviewreview

Terminal, shell and command

Distinguish the window, the command interpreter and the instruction you type.

What you will learn
  • Distinguish the terminal, shell and command.
  • Identify a command name, option and argument.
Know this first
  • Computer
  • File
  • Folder
  • Process
Start this unit
Last verifiedReview every 365 days
On this page

Three different things

A terminal displays text input and output. A shell reads commands and starts work. A command is one instruction written in the grammar that the shell understands. The three terms are related, but they are not synonyms.

command        option       argument
   ls            -l        notes/

The command name selects an operation. Options modify how it behaves. Arguments identify the data or destination it should use.

CMD, Linux shell and PowerShell

GoalWindows CMDLinux shellPowerShell
Current locationcdpwdGet-Location
List itemsdirlsGet-ChildItem
Read a filetype file.txtcat file.txtGet-Content file.txt
Identitywhoamiwhoamiwhoami

CMD and common Linux shells primarily exchange text. PowerShell passes .NET objects through its pipeline, even though it can display them as text. That difference becomes important for filtering and automation.

Observe, then modify

Begin by asking questions that do not change files. The embedded simulator is deterministic: it teaches vocabulary and state changes, not full operating-system fidelity.

TRY IT HERE

Ask the shell where you are, what is there and what one file contains.

Deterministic simulator: no real shell, network or access to your files.

Suggested sequence

$ …

What happened: Each command made one request. Output described state; clear changed only the visible transcript.
Next stepNavigate and change virtual state

Use the current directory, create a folder and verify the result.