Run touch lab/escaped\ note.txt.
touch lab/escaped\ note.txt
Use a backslash to keep an escaped space inside one path argument.
Terminal basicstouchfilerealpath
Click any instruction for the command details, the why, and the common mistake to avoid.
Run touch lab/escaped\ note.txt.
touch lab/escaped\ note.txt
Run file "lab/escaped note.txt".
file "lab/escaped note.txt"
Run realpath "lab/escaped note.txt".
realpath "lab/escaped note.txt"
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Build repeatable confidence with escaping a space in a path.
Start with touch lab/escaped\ note.txt, inspect the result, then continue in order.
Escaping a space in a path helps operators explain what they know before they change anything.
touch <file>
Create an empty file.
file <path>
Identify a simulated file, directory, link, or text format.
realpath <path>
Resolve a path to its canonical simulated location.