Linux / UNIX Tech Support Forum
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 ...
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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' |
![]() |
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 | 18-12-2007 11:14 AM |
| Shell Script for adding, removing and commiting the SVN (Subversion system ) | anilvrathod | Shell scripting | 0 | 07-12-2007 05:40 PM |
| A script for Removing all the files inside a folder and its sub folder | vivekv | Shell scripting | 1 | 25-10-2007 01:44 PM |
| Removing useless users in CentOS | meowing | Web servers | 3 | 15-05-2007 12:43 PM |
| Shell scripting - Removing file extension | urbanreformer | Shell scripting | 3 | 07-03-2007 08:44 PM |