The path
🐧 First StepsLesson 5 of 30 5 min 30 XP

🏗️Making folders and files

Build your own little corner of the computer with mkdir, touch and echo.

Time to build something. mkdir makes a folder, touch makes an empty file, and echo writes words into a file when you use the arrow >.

Commands in this lesson

mkdir zooMake a folder called zoo
cd zooWalk inside it
touch penguin.txtMake an empty file
echo hello > penguin.txtPut the word hello inside the file
cat penguin.txtRead the file back
hello

💡 Think of it like this

touch is getting a blank sheet of paper. echo > is writing on it. cat is reading it out loud.

⚠️ Careful

A single > replaces everything in the file. If you want to add more lines instead, use two arrows: echo more >> penguin.txt.

🐧 Tux tip

File names with spaces need quotes, like "my story.txt". Most people use dashes or underscores instead: my-story.txt.

Now you try

This terminal is pretend, so you cannot break anything. Tap a chip or type a command yourself.

tux — bashpractice

Try the commands from this lesson. Type one and press Enter, or tap a chip below.

penguin@tux:~$
try

Quick check

Which command makes a new folder?

What does echo hi > note.txt do?

Finished this one?

Mark it done to collect 30 XP and keep your streak growing.