Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-19-2009, 10:23 PM   #1
Registered: Sep 2008
Posts: 46

Rep: Reputation: 15
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!
Old 01-19-2009, 10:59 PM   #2
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
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
Old 01-20-2009, 12:44 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,198

Rep: Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310Reputation: 2310
Note also that

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

cd Custom\ Lock\ Screens
or try quotes
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
created ext2 file system on unpartitioned disk nozzer Linux - Newbie 3 09-03-2008 02:35 PM
Find if file system is already created on the RAW device g_johnsonsamuel Programming 2 07-16-2007 01:48 PM
Desktop File Folders don't work Keithj Linux - Software 1 06-14-2005 12:25 PM
I have 8 character file name, no extension files being created in my dbaseIII+ folder bonzo Linux - General 2 01-22-2004 06:49 AM

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration