LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-08-2005, 10:29 PM   #1
virtualme
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 13

Rep: Reputation: 0
Open folders with spaces in the name via the CLI


How do I open folders with spaces in the name. I tried to open a folder named "New Folder" via the CLI and it would not open the folder.

I have the folder in my home folder. This is what I typed: /home/username/New Folder

When I googled, there were some articles about putting "\" where the space is, among many more different symbols. None of them worked.

How do I make this work?

PS
I could just rename the file, but I just want to know.
 
Old 02-08-2005, 10:34 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
New\ Folder
certainly should work. So should
'New Folder'
So should
N<tab>

You didn't literally type what you said, right? You did 'cd' to it or 'ls' it or something?

-- Oh, and you couldn't just rename the file without escaping it in some form or other just as you would for a cd or ls, else you'd be trying to rename two folders that don't exist - 'New' and 'Folder'.

-- Look what you got me saying. Rename two 'directories'. 'Folder' is a bad metaphor that leads to inaccurate mental models of what's going on.

Last edited by slakmagik; 02-08-2005 at 10:38 PM.
 
Old 02-08-2005, 10:38 PM   #3
virtualme
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
Yeah, sorry. I did 'cd' it and it does show up when I 'ls' also.
 
Old 02-08-2005, 10:40 PM   #4
virtualme
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 13

Original Poster
Rep: Reputation: 0
Sweet. Thanks.
Those worked.
 
  


Reply



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
how do you open new folders using terminal? two_faced_moon Linux - Newbie 2 07-08-2004 06:59 AM
using rsync - one of the folders in path has spaces??? jgruss Linux - Networking 10 07-07-2004 07:27 PM
copying folders with spaces between? flamesrock Linux - Software 3 03-13-2004 01:49 PM
I can't open folders in KDE mvp Linux - Newbie 2 08-21-2003 01:01 AM
Desktop folders won't open Paul12 Linux - Newbie 0 07-20-2001 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 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
Open Source Consulting | Domain Registration