Level 2 · Lesson 15: Level 2 test: Command Captain
Copy, move and rename →Windows PowerShell (practice mode: nothing here touches your real computer)
Lesson 15: Level 2 test: Command Captain
Level 2, Talk to Your Computer: PowerShell. Move, build, write and read, all with commands. It follows lesson 14, Practice: the treasure mission. Next comes lesson 16, Copy, move and rename.
What the lesson explains
Command Captain. Everything from Level 2. No hints this time. Read each prompt carefully.
What you do first
Show what you know. Which command tells you where the terminal is standing? The answer: "pwd".
The files on the practice computer
This lesson works in one folder. At the start, your home folder, C:\Users\you holds Desktop\, Documents\, Downloads\, Pictures\.
Along the way you type mkdir Downloads\games, type mkdir Documents\diary and type echo "I learned PowerShell" > Documents\diary\day1.txt. Lesson 16 opens with the files just as you leave them.
What you practise
Test, "Show what you know": Which command tells you where the terminal is standing? The answer: "pwd". Then: In the practice terminal, type ls Documents at the prompt PS C:\Users\you> and the computer answers: Directory: C:\Users\you\Documents / Mode Name / ---- ---- / d---- music / d---- my-project / d---- stories / d---- vault. Then: Which one adds a line to the end of a file? The answer: ">>". Then: In the practice terminal, type cat Desktop\todo.txt at the prompt PS C:\Users\you> and the computer answers: 1. Learn about files / 2. Tidy my folders. Then: In the practice terminal, type mkdir Downloads\games at the prompt PS C:\Users\you> and the computer answers: Directory: C:\Users\you\Downloads / d---- games. It makes games.
Challenge, "A diary entry": Write diary\day1.txt in Documents. Starting at PS C:\Users\you>, one way takes 2 commands: mkdir Documents\diary; echo "I learned PowerShell" > Documents\diary\day1.txt (par: 3).
Help in every lesson
Everything happens on a pretend computer in your browser, so nothing touches your real files. PlayBuddy and PlayType stand beside the board, cheer you on and say when it is your turn.
This is a test, so the green ring stays away: you show what you know on your own.
Stars
The lesson has 6 things to do. Up to one slip in ten gives three stars, up to one in four gives two, and finishing always gives at least one. Stars and progress are saved in this browser only; there is no account.
About DayOneCode
DayOneCode is an independent learning site, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.