Re: How to delete a special directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this (works with bash on BSD...Linux should be the same)

 rm -rf \-f \-q

Make sure you are in bash...the backslashes escape the - and take it as a
literal.

Cheers
wes


On 2/9/07 7:33 AM, "Scott Pack" <spack@xxxxxxxxxxxx> wrote:

> M?rio Gamito [gamito@xxxxxxxxx] wrote:
>> I've accidently created two directories: -f and -q
>> 
>> Now, i can't remove them with rm -rf -f -q
>> I get an error.
>> 
> 
> Try giving the full path name to the directory.  Such as,
> rm -rdf ./-f ./-q
> 
> 
> 
> 
> S.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux