Knowledge Hub / Digital foundations
Terminal and commands
How can I ask a computer to do one observable action?
Terminal, shell, command, current directory and the first safe filesystem observations.
- Last verified
- 2026-09-21
- Review interval
- 365 days
- Status
- In review
01 / Overview
How can I ask a computer to do one observable action?
A terminal displays text input and output. A shell reads a command and asks the operating system to perform work. You begin by observing the current directory, listing names and creating a harmless file in the deterministic simulator.
- Level
- Intermediate
- Units
- 2
- Estimated time
- 40 min
- Distinguish the terminal, shell and command.
- Use observation before modification.
- Computer
- File
- Folder
- Process
- Labs: available
- Embedded practice: available
- 01Terminal, shell and command20 min
- 02Navigate and change virtual state20 min
02 / Learn
Learn
- Terminal, shell and commandOpen lesson →
Distinguish the window, the command interpreter and the instruction you type.
- Navigate and change virtual stateOpen lesson →
Use the current directory, paths and small reversible changes inside the safe simulator.
03 / Concepts
Concepts
- Three different layersterminal-shell-command
- The terminal displays, the shell interprets and the command requests one action.
- Current directorycurrent-directory
- The starting location used to resolve a relative path.
04 / Commands
Commands
| Environment | Command | Purpose | Lab |
|---|---|---|---|
| linux | pwd | Print the current directory. | Available in Command Lab |
| linux | ls | List names in the current directory. | Available in Command Lab |
| multi | mkdir lab | Create a directory in virtual state. | Available in Command Lab |
| linux | touch note.txt | Create an empty simulated file. | Available in Command Lab |
05 / Labs
Labs
- Command LabOpen safe simulator →
Deterministic browser simulator for CMD, Linux shell and PowerShell practice with virtual state.
deterministic simulator
07 / Security
Security
- A copied command is untrusted input: inspect the command, options, arguments, location and expected effect before running it.
08 / Troubleshooting
Troubleshooting
- If a path fails, first print the current directory and list its names; do not change permissions as a first guess.
09 / Quick checks
Quick checks
- Which layer reads the command: terminal, shell or file?
10 / GRAPH
Related concepts
Used in certifications
These links reuse canonical knowledge; the certification page does not own or duplicate the topic.
12 / Sources and freshness
Sources and freshness
- Last verified
- 2026-09-21
- Review interval
- 365 days
- Source version
- GNU Bash manual · Microsoft PowerShell overview · Command Lab grammar v1