How can I make rm stop asking me for permission?

I would check if your rm is an alias. Typing alias at the command line you will see all defined aliases. I expect something like

alias rm='rm -i'

If so, the alias is probably defined in in ~/.bashrc, so you can remove the alias altogether or change it to suit your needs.

Alternatively, you can remove the alias for the current terminal session using unalias rm.


rm -f mod_wsgi-3.3.tar.gz

WARNING: use with caution.

From the man page:

-f, --force ignore nonexistent files, never prompt

The greatest what I found is

\rm file

this will run the original unalias version and keep the alias intact.

We can also use shell built-in command for instance

command rm file

but I surely enjoy the less verbosity in first one

Tags:

Rm