This is a discussion on removing a -- directory within the Linux software forums, part of the Linux Getting Started category; Hi all, I need to delete a directory that was somehow accidentally created by one the users. The directory contains ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi all,
I need to delete a directory that was somehow accidentally created by one the users. The directory contains two -- before the name... i.e. --dir1 and --dir2 When I try to use rmdir or rm -r '--dir1', it says unrecognised option. How can I delete such directories. ricc |
| Sponsored Links | ||
|
|
|
||||
|
Heh
Prefix -- before dirname i.e. Code:
rm -r -- '--dir1' |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| awk - Removing domain name entires | nvbhole | Shell scripting | 0 | 12-18-2007 12:14 PM |
| Shell Script for adding, removing and commiting the SVN (Subversion system ) | anilvrathod | Shell scripting | 0 | 12-07-2007 06:40 PM |
| A script for Removing all the files inside a folder and its sub folder | vivekv | Shell scripting | 1 | 10-25-2007 02:44 PM |
| Removing useless users in CentOS | meowing | Web servers | 3 | 05-15-2007 01:43 PM |
| Shell scripting - Removing file extension | urbanreformer | Shell scripting | 3 | 03-07-2007 09:44 PM |