The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can not delete Directory Clevelaw AIX 9 05-21-2008 07:53 AM
Can't delete directory funksen SUN Solaris 4 03-09-2007 11:14 AM
Delete a directory - very fast jingi1234 UNIX for Advanced & Expert Users 3 09-20-2006 12:38 PM
Can't delete a directory on HP-UX oradbus HP-UX 2 05-31-2005 12:32 PM
How to delete nonempty directory? xli3 UNIX for Advanced & Expert Users 2 05-01-2003 11:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-25-2007
Registered User
 

Join Date: Aug 2005
Location: Paris
Posts: 75
delete a directory

Hi all,

I have an empty directory "-ltr".
How to delete it ?

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 01-25-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,275
try rmdir '-ltr'
Reply With Quote
  #3  
Old 01-25-2007
Registered User
 

Join Date: Aug 2005
Location: Paris
Posts: 75
It doesn't work :
Quote:
prompt>rmdir '-ltr'
rmdir: illegal option -- l
rmdir: illegal option -- t
rmdir: illegal option -- r
Usage: rmdir [-ps] dirname ...
Reply With Quote
  #4  
Old 01-25-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,275
Then try -
rmdir ./-ltr
Reply With Quote
  #5  
Old 01-25-2007
Registered User
 

Join Date: Aug 2005
Location: Paris
Posts: 75
Good
Thanks a lot
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0