Question : Folder name with space cannot cd

i cannot go to a directory which looks like spaces in the directory name


direc ory name


i tried

cd direc ory name

its not working ..please help me

Answer : Folder name with space cannot cd

Hello jaisonshereen,

cd "direc ory name"

use double quotes .. in case you have it in a variable

mydir="direc ory name"
cd "$mydir"

Regards,

sunnycoder
Random Solutions  
 
programming4us programming4us