Custom safe rm configuration
Hi
I have two questions about how to modify 'rm' to prevent unexpected removal of files.
1) How can I define that 'rm' is not executed, if a ' * ' wild card is passed (note the white-space before and after the asteriks).
2) How can I prevent 'rm' calls being added to the Bash history?
I heard about '-i' option and safe-rm so no need to point these out, but I wonder about how to do the above two things.
Thanks for any hints on this.
|