Weird Files...

Derek Martin ddm at cerberus.ne.mediaone.net
Fri Oct 27 00:47:48 EDT 2000


Yesterday, linuxguy at ici.net gleaned this insight:

> 
> > > rm ?f2
> > 
> > No... that won't work because the shell expands it to -f2 and passes that
> > to rm.  Still bombs...  I like the other two though...  :)
> 
> 
> I recommend the following...
> 
> echo "Learn it for life" > '/-rf *'
> 
> and now go remove it ;-)

Ok:

  $ rm '/-rf *'

Works like a charm. Note that you must be root to do this (or have your
permissions set up really really badly) since it will create a file called
'-rf *' in the root directory.

Heh... we should have a spot on Letterman doing "Stupid Unix tricks"

=8^)


-- 
You know that everytime I try to go where I really want to be,
It's already where I am, cuz I'm already there...
---------------------------------------------------------------
Derek D. Martin              |  Unix/Linux Geek
ddm at MissionCriticalLinux.com |  derek at cerberus.ne.mediaone.net
---------------------------------------------------------------

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list