Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-09-2006, 08:03 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: Singapore
Distribution: Ubuntu / Debian
Posts: 26
Rep:
|
How To Access Folders with a Space in the Name
Hi Guys:
I have this problem, I have a portable disk which I created folders under windows, names having space in side, for example a folder called "My Music",
How do I access them from Linux command line? when I type "CD My Music", it will just say "My is not a valid name"
Please help me
Thanks a lot.
|
|
|
04-09-2006, 08:08 AM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
Use tab. It will complete the path for you automatically. You could alternatively use back slashes:
cd My\ Music\
or something like that. I always use tab though
|
|
|
04-09-2006, 08:29 AM
|
#3
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
Or you can use " " to surround the name:
As with Mega Man, I prefer Tab completion though.
--Ian
|
|
|
04-09-2006, 08:33 AM
|
#4
|
Member
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222
Rep:
|
Quote:
Originally Posted by benben_shen
Hi Guys:
I have this problem, I have a portable disk which I created folders under windows, names having space in side, for example a folder called "My Music",
How do I access them from Linux command line? when I type "CD My Music", it will just say "My is not a valid name"
Please help me
Thanks a lot.
|
if you shell supports it just #cd M <-- tab it :-)
|
|
|
04-10-2006, 12:28 AM
|
#5
|
LQ Newbie
Registered: Nov 2005
Location: Singapore
Distribution: Ubuntu / Debian
Posts: 26
Original Poster
Rep:
|
all right guys, thanks a lot for your opinion. love you guys, everytime I have some problems, sure got people help me here.
|
|
|
04-10-2006, 02:35 AM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Quote:
Originally Posted by Mega Man X
cd My\ Music\
or something like that. I always use tab though
|
cd My\ Music/
|
|
|
04-10-2006, 03:17 PM
|
#7
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
thanks Alien_Hominid. I knew I was doing something wrong. The Tab key made me lazy
|
|
|
All times are GMT -5. The time now is 03:10 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|