Re: How to delete a file called "-gzip"?
On Mon, Feb 05, 2001 at 11:29:39PM +0100, Kerstin Hoef-Emden wrote:
>
> Hi,
>
> this is a completely stupid thing I did. I wanted to make a zipped tar
> archive of my complete user home account and write it to MOD.
>
> Unfortunately I used the following line:
>
> tar -cvvf -gzip /mod/name-of-archive folder-name
>
> Now my home-partition is 100 % full and I don´t know how to delete that
> -gzip file! :-(
> Gee, why doesn´t tar realize that things starting with "-" are no file
> names.
>
> I tried
> rm "-gzip"
> rm ´-gzip´
> rm \-gzip
>
> None of these worked.
>
> What is the trick? (There must be one ...)
>
>
> Regards,
>
> Kerstin
...guessing here, but if you
mv -gzip foo (foo being some other name not beginning with "-")
and then
rm foo
does that work?
bentley taylor.
ps. i'm too chicken to replicate a -foo file.
//
Reply to: