rm misbehavior

Jon LaBadie ubu at labadie.us
Tue Dec 31 05:20:03 UTC 2024


On Mon, Dec 30, 2024 at 06:49:43PM +0100, Ralf Mardorf via ubuntu-users wrote:
>On Sun, 2024-12-29 at 18:51 -0500, Paul Smith wrote:
>> This is why I've always hated it that RHEL aliases rm to "rm -i" by
>> default.
>>
>> It's just (IMO) a terrible, dangerous approach.
>>
>> Instead, they should have created a new alias like "rmi" or something
>> and encouraged everyone to get used to running that instead of "rm".
>> Then at worst someone would get an "command not found" error if the
>> aliases are not available.
>
>+1000
>
>I always manually type the -i option for rm, mv and friends.
>
Relying on that is comfortable until one day, like me,
you inadvertently type a space between the "-" and "i"
and see the error message "i: no such file or directory".

-- 
Jon H. LaBadie                  ubu at labadie.us



More information about the ubuntu-users mailing list