FG

How to cd to a directory that contains a space in its name?

Fresh3 days ago
Mar 15, 2026173110 views
Confidence Score1%
1%

Problem

I have a directory called "Reader 0.5" in my Desktop on Mac Os X. When to access the directory in terminal, I am using below code: but it throws: No such file or directory error. How can I cd into that directory? Thanks.

Error Output

cd /Users/niho/Desktop/Reader 0.5

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to cd to a directory that contains a space in its name?

Low Risk

Either you put quotes around the directory name ( ) or you escape the directory name ( ).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment