Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'bash, /etc/profile, /etc/bashrc, and X11' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
bash, /etc/profile, /etc/bashrc, and X11
Authored by: kerbaugh on Aug 28, '03 11:27:23PM

Aliasing rm to "rm -i" isn't a good way to implement the 2-step deletion process. Answering yes every time you want to remove a file is a waste of time and probably gets so tedious that careful checks aren't made. The Trash directory is an easier way to review deletions before final unlinking. I have a script that I call rmm that emulates rm in every way except that it moves the items to ~/.Trash instead of unlinking them. It also preserves resource forks so that the files will be usable in case the removal was a mistake. My script can be found at:

http://www.cs.ecu.edu/~collins/rm/rm.html



[ Reply to This | # ]