University Crest

[wlug] Removing /-rf

 
wlug archive index About the wlug list Mailing lists home
To The University of Waikato HomepageWaikato Home > Waikato Mailing Lists > wlug Info > wlug archives
Oliver Jones oliver@d...
Sat Apr 9 00:38:42 NZST 2005


On Sat, 2005-04-09 at 00:04 +1200, Bnonn wrote:
> > cd / && rm -- -rf ?
> 
> What's wrong with plain old
> 
> 	root@s...:/ # rm "-rf"

Give it a go.  Find out... I dare you.  Well actually it wont work
because you've not specified a dir/file to delete.  It just returns
without doing any work.  Even though you quoted the -rf it is
interpreted by rm as an option not a filename.

Regards
--
                   Oliver Jones » Roving Code Warrior
   oliver@d... » +64 (21) 41 2238 » www.deeperdesign.com 




More information about the wlug mailing list
NOTICE: This is an archive of a public mailing list. The University of Waikato is not responsible for its contents.

The University of Waikato - Te Whare Wananga o Waikato