two questions

Sergey Zaharchenko doublef at tele-kom.ru
Thu Jun 24 22:00:58 PDT 2004


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

You're missing the -r:

$ rm -r -- --test

should work.

-- 
DoubleF
The generation of random numbers is too important to be left to
chance.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040625/a853aac1/attachment.bin


More information about the freebsd-questions mailing list