📜  如何 cd 进入带有空格的目录 linux - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:50.942000             🧑  作者: Mango

代码示例1
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.