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

Re: How to delete a file called "-gzip"?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You can also try 
rm '-gzip'
the ' are single quotes
- --Warren

On Monday 05 February 2001 16:45, Erik Steffl wrote:
> cls/cs wrote:
> > 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.
>
>   two ways:
>
>   rm ./-gzip
>   rm -- -gzip
>
>   the first one should work everywhere, the second one works with gnu
> rm, I think, not sure though.
>
> 	erik

- -- 
I don't have some cute little signature.  Deal with it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjqBDYQACgkQEMmUMjlf2iyzggCeLWFIE6XwOD7wDhMYICNQl+7n
ddoAn0Htk3LKRX42lB/VAQnKUicD5qth
=NHNQ
-----END PGP SIGNATURE-----



Reply to: