Mission 33

Quoted paths

Create and list a path that contains a space.

Terminal basics
8 minutes Core Lesson 33 of 360
mkdirtouchls
Lesson 33 of 360 0/360 lessons 0/17 missions Terminal basics · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Create spaced folder

Run mkdir "lab notes".

mkdir "lab notes"
Create spaced file

Run touch "lab notes/quote.txt".

touch "lab notes/quote.txt"
List spaced folder

Run ls "lab notes".

ls "lab notes"
Lesson support

What to notice while you play.

Objective

Practice quoting file and folder names safely.

Hint

Wrap the lab notes path in quotes.

Why it matters

Real-world files sometimes contain spaces, especially on macOS.

Common mistakes
  • Forgetting the second quote.
  • Creating two paths when you meant one.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

mkdir <name>

Create a folder.

touch <file>

Create an empty file.

lsof

Show simulated files and sockets opened by services.