
8 Apr
2005
8 Apr
'05
12:33 p.m.
On Fri, 2005-04-08 at 23:16 +1200, Jason Drake wrote:
We once spent an entertaining amount of time discussing the safest way to remove a file owned by root, in the / directory, named " -rf"
I'd love to see what the list suggests for this :)
how about
unlink -rf
or simply
rm /-rf
either should work but the first would be safer from a typos perspective
cd / && rm ./-rf Incidentally I just deleted all the logs of a website by accident with rm -f.... *sigh*. Not that it mattered much. A lot of the log data was foo anyway. Regards -- Oliver Jones » Roving Code Warrior oliver(a)deeperdesign.com » +64 (21) 41 2238 » www.deeperdesign.com