Aliasing rm to rm -i for sudo

Michael Beattie mtbeedee at
Mon Jun 20 15:51:58 UTC 2005

On 6/20/05, Markus Kolb <ubuntu-ml at> wrote:
> Matthew S-H wrote on Mon, Jun 20, 2005 at 10:24:47 -0400:
> > try adding:
> > alias "sudo rm"="sudo rm -i"
> That's an invalid alias name. "sudo rm" can't be a command.

you could do

alias sudo_rm='sudo rm -i'

but that's a bit weird.

More information about the ubuntu-users mailing list