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


Click here to return to the 'A shell function to make 'rm' move files to the trash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell function to make 'rm' move files to the trash
Authored by: theduke on Mar 02, '08 12:23:49PM

I don't like the idea of reworking basic commands, and I don't like coming to depend on specialized functions that don't draw on my own private data (it becomes a pain to work on other people's computers when you don't have your little toolset handy).

What I do to avoid rm catastrophes is simple. I type the path first, look at it closely, then ^a back to the beginning of the line and type in the command.

If I'm really in doubt about what I'm doing, I'll type in ls instead of rm, just to be sure of what I'm going to hit.



[ Reply to This | # ]