LinuxQuestions.org
Visit Jeremy's Blog.
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 03-07-2004, 11:50 AM   #1
Schmurff
Member
 
Registered: Mar 2004
Location: Netherland
Distribution: Fedora Core 2, Mandrake10.0
Posts: 62

Rep: Reputation: 15
Wink directory-names with spaces...


Hello,

I am happy having found this forum. Some problems I had were solved in a nice manner.
Now I have a little problem with directories that were created by an application, for there are spaces in the directory-names.
Working in a terminal with these directories I found out that I cannot access these directories in a normal way.
Is there a method to overcome these spaces, for instance with an escape-character?
I'll give one example: /mp3/Groove Salad, how do I access that directory "Groove Salad"?
I know I could rename the dir in a file-browser, but the next time I should have to do that again, and again and again...

Thanks in advance for any help and with kind regards,

Schmurff
 
Old 03-07-2004, 11:55 AM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Try putting it in quotes:

example:
cd mp3
cd 'Groove Salad'
 
Old 03-07-2004, 12:06 PM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Don't forget the command line auto-completition. That's going to make you life much easier . It works like this:

cd mp3/Gro

then press "tab" key. It will complete the hole directory name for you. Use it often and you will navigate through your system faster then any gui like application

Regards!
 
  


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
du or wc and file names with spaces bramadams Slackware 2 01-27-2005 12:43 PM
files that have spaces in their names hesher Linux - Software 5 01-14-2005 02:43 PM
smbclient spaces in directory names? darkleaf Linux - Networking 2 11-23-2004 03:25 PM
Spaces in file names JohnKFT Slackware 3 11-09-2004 04:44 PM
Files with spaces in their names downinthemine Linux - General 3 12-12-2003 02:48 PM


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

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