I would like to override a particular environment variable on a one-shot basis. The system currently has a variable for the "rm" command, forcing verification for each file. In general I am fine with this; it's saved me on a number of occasions.
However, it gets in the way sometimes. I have a large number of diagnostics files that are constantly generated and I periodically delete them. However, it takes forever to respond to the "rm: remove regular file `../logs/abort20150303013725_diag.txt'?" for every one of hundreds of files.
In this case I know I want to delete all of the files. There has to be a way to say "ignore the environment variables and issue the command exactly how I enter it". Basically behave as if there was no environment variable for rm for that particular invokation. While keeping the "confirm all" operation unless explicitly overridden.
rm
changed? Is there an alias? A function? A script? What variables are you talking about?type rm
will show it is probably an alias. Use/bin/rm
for example, or remove the alias withunalias rm
.