LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-23-2003, 12:40 PM   #1
CruelEssence
LQ Newbie
 
Registered: Nov 2003
Posts: 16

Rep: Reputation: 0
How to access a directory whose name includes a space??


Hi! This may sound stupid, but I want to know how to access a directory whose name contains a space. Suppose there's a directory named "My Docs" with a space between My and Docs. How will I access this directory using 'cd' command. I tried like:

cd /home/aa/My_Docs/

but gives an error message sayin no such file or directory though I've created a directory named "My Docs" under /home/aa directory.

Can anyone help, please?

--CE

Last edited by CruelEssence; 11-23-2003 at 12:42 PM.
 
Old 11-23-2003, 12:44 PM   #2
luxitan
Member
 
Registered: Aug 2003
Location: Portugal
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
cd /home/aa/My\ Docs/

[edit]

just to add that if you write My and then hit tab he will eventualy complete the sentence, unless another 'My something' directory is there

Last edited by luxitan; 11-23-2003 at 12:47 PM.
 
Old 11-23-2003, 12:46 PM   #3
CruelEssence
LQ Newbie
 
Registered: Nov 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks.

Thanks for ur reply.

--CE
 
Old 11-23-2003, 04:44 PM   #4
286
Member
 
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130

Rep: Reputation: 15
oh. i use /home/aa/"My Docs"/ but luxitan gave a easier solution.
 
  


Reply


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
A harddisk space where XP and FC4 can both access bonniehandi Linux - Newbie 3 11-25-2005 10:12 PM
how to access the different flags of a socket from user space enthusiast_abdul Linux - Networking 0 11-10-2005 04:04 AM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 08:45 AM
reboot so user can access fs space limited by group recently added to? bdp Linux - General 4 09-27-2003 02:21 AM
Create an archive file which includes files in sub-directories? amaze Linux - General 1 09-26-2003 09:43 AM


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

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