✕ Close
← Speed tricks

Level 2 · Lesson 14: Practice: the treasure mission

Level 2 test: Command Captain →
PRACTICE
The treasure mission
Hide a treasure, then find it again, all with commands.
press Enter ↵
C:\Users\you\Documents
musicmy-projectstoriesvault
⬆ Documents is inside you

Windows PowerShell (practice mode: nothing here touches your real computer)

 

Lesson 14: Practice: the treasure mission

Level 2, Talk to Your Computer: PowerShell. Hide a treasure, then find it again with commands. It follows lesson 13, Speed tricks. Next comes lesson 15, Level 2 test: Command Captain.

What the lesson explains

The treasure mission. Hide a treasure, then find it again, all with commands.

What you do first

Hide the treasure. In the practice terminal, type cd Downloads at the prompt PS C:\Users\you>; the prompt then reads PS C:\Users\you\Downloads>.

The files on the practice computer

This lesson works in 3 folders. At the start, your home folder, C:\Users\you holds Desktop\, Documents\, Downloads\, Pictures\; Downloads holds nothing yet; Documents holds music\, my-project\, stories\, vault\.

Along the way you type mkdir treasure and type echo "X marks the spot" > treasure\map.txt. Lesson 15 opens with the files just as you leave them.

What you practise

Mission, "Hide the treasure": In the practice terminal, type cd Downloads at the prompt PS C:\Users\you>; the prompt then reads PS C:\Users\you\Downloads>. Then: In the practice terminal, type mkdir treasure at the prompt PS C:\Users\you\Downloads> and the computer answers: Directory: C:\Users\you\Downloads / d---- treasure. It makes treasure. Then: In the practice terminal, type echo "X marks the spot" > treasure\map.txt at the prompt PS C:\Users\you\Downloads>; the prompt then reads PS C:\Users\you\Downloads>. Then: In the practice terminal, type cd ~ at the prompt PS C:\Users\you\Downloads>; the prompt then reads PS C:\Users\you>.

In your head, "Where will you be?": You are in C:\Users\you\Downloads\treasure and type cd .. — where are you now? The answer: "Downloads".

Challenge, "Find the treasure": Starting at C:\Users\you\Documents, use dir and cd to reach C:\Users\you\Downloads\treasure, then type cat there (par: 3 commands).

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.

A green ring shows where to click the first time. After that you do it on your own, and if you slip twice the ring comes back.

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.