Wednesday, November 17, 2010

Change directory in apache where there are spaces in dir.?

how do you change to a directory that has spaces in it. like';bobs bkup 2'; from terminal mode in apache? i have tired _ - . , nothing worksChange directory in apache where there are spaces in dir.?
There is no Apache terminal mode - you're logged in via SSH (or telnet) on a server which happens to be running Apache.



Just enclose the directory name in double quotes;



$ cd bobs bkup 2 (wrong!)

$ cd ';bobs bkup 2';



You can also escape the spaces with a backslash, like so:



$ cd bobs\ bkup\ 2

No comments:

Post a Comment