[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: Linux Interview Questions



On 3/14/07, Tarek Soliman <tarek-spam@zeusmail.bounceme.net> wrote:
> Q) In the CLI, how do you rm (remove) a file that begins with a hyphen ?
>
> A) rm -- --oops
>
Wasn't there a similar horror story where a program would save a
directory as .* or *. or whatever, and then rm -R .* would expand to ..
among other things, nuking the parent folder too?

rm ".*"


Regards,
Atis

\.../)
(O.o)
(> <) This is Bunny. Copy Bunny into your signature to help him on his
way to world domination.



Reply to: