I’ve got this habit of using rm and Shift + delete when I come across a file that I’m not using. It’s been costly at times when I’ve removed files that I would later need. Now, since I’ve paid dearly a few times, I’ve decided that the following are a must:
- alias rm=’rm -i’ in ~/.bashrc
- NEVER USE SHIFT while deleting
- Since I spend most of my time on the console, install ptrash or trash-cli and make use of these when you have the urge to delete a file. (trash-cli seems better at a glance here)
- Take time out in a fortnight and empty your waste basket.
Like this:
Like Loading...
Being an old-school Unix weenie, I prefer to use a combination of ‘rm’, version control, and good backups.
Aha, how about a few tips on your method?
rm -i is painful. Perhaps trash-cli aliased to rm? Haven’t looked at trash-cli enough to know if that would work smoothly.
The rm -i is a good way to prevent disasters. When I’m sure I go ‘rm -f’ which “overrides” the -i switch.