LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't cd into created folders in Documents Folder either on Desktop or in File System (http://www.linuxquestions.org/questions/linux-newbie-8/cant-cd-into-created-folders-in-documents-folder-either-on-desktop-or-in-file-system-698508/)

bparkerson04 01-19-2009 10:23 PM

Can't cd into created folders in Documents Folder either on Desktop or in File System
 
I was trying to move a custom lock screen located at the following path /home/bparkerson04/Documents/Custom Lock Screens/HS Lock/ to /usr/share/gnome-screensaver/ using the sudo command. Whenever I would try and change directory (cd) into the Custom Lock Screens folder, I would get the following output:

bparkerson04@bparkerson04-laptop:~/Documents$ cd /Custom Lock Screens
bash: cd: Custom: No such file or directory

I also tried it some other ways (also include ls, everything listed is blue text in the command window)

bparkerson04@bparkerson04-laptop:~/Documents$ ls

Custom Icons Custom Login Screen Skydomes
Custom Lock Screens Custom Menu Buttons Wallpapers

bparkerson04@bparkerson04-laptop:~/Documents$ cd /Custom Lock Screens
bash: cd: /Custom: No such file or directory
bparkerson04@bparkerson04-laptop:~/Documents$ cd /Custom Lock Screens/
bash: cd: /Custom: No such file or directory


I get similar output for any folder I try to get into from command line in my Documents folder. How am I supposed to move files from these folders using sudo if I can't get into them? Does anyone know why I am unable to cd into them? Thank you for your help in advance. Let me know if you need any more info. Thanks!

vinnywrite 01-19-2009 10:59 PM

linux dosent like spaces do this if you put spaces in the name of your DIR

cd /home/bparkerson04/Documents/Custom\ Lock\ Screens/

should work :)

chrism01 01-20-2009 12:44 AM

Note also that

Code:

cd /Custom Lock Screens
meand cd starting at the root of the filesystem, which is not what you want/mean. Just do

Code:

cd Custom\ Lock\ Screens
or try quotes
Code:

cd 'Custom Lock Screens'
but in general, don't put spaces in file or dir names. Technically it is legal, but most cmds/utils assume that space separated values are separate params, so don't do that. ;)


All times are GMT -5. The time now is 01:19 PM.