Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Jun 2004 08:59:46 +0400
From:      Sergey Zaharchenko <doublef@tele-kom.ru>
To:        epilogue@allstream.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: two questions
Message-ID:  <20040625045946.GA40925@shark.localdomain>
In-Reply-To: <20040624235109.75b3399b@localhost>
References:  <1793.192.168.1.1.1088132789.squirrel@192.168.1.1> <50be591b04062420296611a8d5@mail.gmail.com> <20040624235109.75b3399b@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 24, 2004 at 11:51:09PM -0400,
 epilogue@allstream.net probably wrote:
> On Thu, 24 Jun 2004 20:29:35 -0700
> Hemal Pandya <hemalpandya@gmail.com> wrote:
>=20
> > On Thu, 24 Jun 2004 23:06:29 -0400 (EDT), Michael Sharp <ms.probsd@org>
> > wrote:
> > >=20
> > > I'm having a brain freeze tonight and apparently forgot some
> > > basic UNIX commands..
> > >=20
> > > what is the command to remove the file "--directory"
> > >=20
> > > rm *directory* =3D nope
> > > rm "*directory*" =3D nope
> > > rm \-\-\directory =3D nope
> > > rm -i * =3D nope and dosent even see the file
> > rm ./-directory
>=20
> funny, though i tried these on a test directory...
>=20
> rm ./-test
> rm -- --test
>=20

You're missing the -r:

$ rm -r -- --test

should work.

--=20
DoubleF
The generation of random numbers is too important to be left to
chance.

--GvXjxJ+pjyke8COw
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA27FBwo7hT/9lVdwRAkZAAJ478eKyHI7LwHFZs0sUM5CkfYkGCgCbB9dP
hDSI7EOOW6qgY4VYiYTGUYI=
=7Po/
-----END PGP SIGNATURE-----

--GvXjxJ+pjyke8COw--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040625045946.GA40925>