Download your favorite Linux distribution at LQ ISO.
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 12-31-2005, 08:32 PM   #1
Registered: Oct 2004
Location: columbus oh
Distribution: mepis
Posts: 109

Rep: Reputation: 15
directories with capitol letters

I have some directories with capital letters and I can
use the shell command cd to change to these directories
except if the directory name has space such as.


I think there is some bash trick to change to a directory
like that but I could not find. of course I can use konqueror
to navigate there but I would like to know how to on the
shell command.
Old 12-31-2005, 09:03 PM   #2
Senior Member
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You can also use bash completion (hit the <tab> botton after typing "MY").
Best of all, change the directory name.
Old 12-31-2005, 09:25 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,805

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
The subtle trick in the last post is called "escaping". The backslash causes the space to be seen as part of the name.

Note also that you can simply use quotes---easier if there are multiple gaps in a file name.


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
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 04:22 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 01:23 PM
I'm seeing wierd letters tearinox Linux - General 1 02-26-2004 05:09 AM
non english letters bynaar Slackware 8 01-21-2003 01:23 PM
saving my letters blotch Linux - Newbie 4 11-28-2001 05:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:56 PM.

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
Open Source Consulting | Domain Registration