LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 09-15-2004, 10:51 AM   #1
budhead
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
Can't delete directory with space in name


After extracting a tar file that created a directory with a space in the name (New Directory) I cannot delete that directory. The command returns a message that the directory does not exist. I've tried rmdir New, rmdir Directory, rmdir NewDirectory, rmdir New_Directory, and of course, rmdir New Directory. Nothing works. I can delete it from the GUI, but not from the CLI. Any ideas (yes, I'm interested to know how to do it from the CLI even though I can do it from the GUI--I've just GOT to know )??
 
Old 09-15-2004, 10:54 AM   #2
rjtucke
Member
 
Registered: Sep 2004
Distribution: Debian testing
Posts: 49

Rep: Reputation: 16
rm New\ Directory

rjtucke
 
Old 09-15-2004, 10:56 AM   #3
geniarse
Member
 
Registered: May 2003
Location: UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 15
space is ignored by commands as interpreted as end of file. to remove file "Space Between.txt" use:

Code:
rm Space\ Between.txt
p.s I thought I might draw your attention to tab completion. type the first few letters of the file/directory name hit tab and the name will be completed. If multiple files/directories with same beginning letters exist tapping tab twice will show a list of matching files

Last edited by geniarse; 09-15-2004 at 10:59 AM.
 
Old 09-15-2004, 10:57 AM   #4
budhead
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you!!!!!!
 
  


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
cant delete directory linuxmandrake Linux - Newbie 4 08-16-2005 11:14 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
Preinstalled Win XP Pro: Keep or Delete? Needed or just taking up space? hanzj Linux - Newbie 11 04-20-2005 06:35 PM
save space and delete old packages ctagg Linux - Newbie 1 03-14-2005 04:33 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration