__/ [ Handover Phist ] on Thursday 14 September 2006 21:59 \__
> [H]omer :
>> Handover Phist wrote:
>>> For the first time in quite awhile I scared the crap out of myself using
>>> I found out quickly what the difference between
>>> Thu Sep 14 09:30:09 /usr/src/linux# mv
>>> /home/jason/bootsplash-3.1.6-2.6.15.diff .
>>> Thu Sep 14 09:30:09 /usr/src/linux# mv /home/jason
>>> bootsplash-3.1.6-2.6.15.diff .
>>> The second command is the one I chose to execute. It took me all of two
>>> minutes to figure out what had happened (thank you command history!) but
>>> those two minutes were a little disturbing. I was homeless!
>> Tsssk. I always ensure my bashrc has the following aliases:
>> alias rm='rm -i'
>> alias cp='cp -i'
>> alias mv='mv -i'
>> This is the default for the root account under RH/Fedora, and I've also
>> made it the default for all user accounts on all my systems.
> Wouldn't have helped much. I wasn't overwriting existing files, I
> accidentally moved my ~/ to /usr/src.
Another advice I was once given is to always ls SOME_EXPRESSION_OR_WILDCARD
before rm SOME_EXPRESSION_OR_WILDCARD. mv will at least not eliminate
anything (under most circumstance), so it's reversible. I once heard a story
where someone (Toby Inkster) rm -rf'd in/under the wrong directory. To make
matters worse, he was logged in as root at the time.
> > I havent felt like that in years. I haven't lost any files since my last
> > Windows crash in `99.
> > And yes, I do have a backup, but who wants to futz with backups for an
> > hour when work could be getting done?
I really liked that last sentence. Restoration from backups and
reinstallation are for lusers (sic).
Roy S. Schestowitz | Useless fact: 85% of plant life in in the oceans
http://Schestowitz.com | SuSE Linux | PGP-Key: 0x74572E8E
2:20am up 56 days 14:32, 10 users, load average: 1.30, 0.73, 0.32
http://iuron.com - Open Source knowledge engine project