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

Re: How do I remove a bad file??



On Wed, May 2, 2012 at 5:16 AM, Andrei POPESCU <andreimpopescu@gmail.com> wrote:
> On Ma, 01 mai 12, 19:15:19, Indulekha wrote:
>>
>> It's always wise to alias "rm" to "rm -i" in your shell.
>> Also learned the hard way, when the combination of a killer
>> headache and time pressure caused me to delete a bunch of
>> things years ago...
>
> I used to think so as well, but consider situations where your delete
> pattern matches a lot of files, are you going to press 'y' for each and
> every one of them? You will probably interrupt and add -f as well, which
> may do more than what you wanted.

You can override the aliased "-i" with a '\" in front of "rm".


Reply to: