Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to cd into a directory with a space linux

Either you put quotes around the directory name 
( cd "/Users/niho/Desktop/Reader 0.5" ) 
or you escape the directory name 
( /Users/niho/Desktop/Reader 0.5 ). 
As others have mentioned, quoting the path or backslash-escaping the 
spaces will work.
 
PREVIOUS NEXT
Tagged: #cd #directory #space #linux
ADD COMMENT
Topic
Name
6+3 =