From: Ibraheem Umaru-Mohammed Date: 2002-12-08T07:21:32+09:00 Subject: Re: Thank God for backups * Gavin Sinclair [2002-12-07 05:09]: > From: "Daniel Carrera" > > I was working on the tutorial just now and wanted to delete all the *~ > > files. But instead of typing `rm *~` I typed `rm *` and all the files > > were silently deleted. > > > > This could have been a tragedy if I didn't have a recent backup made on a > > sepparate directory. Since I did, I actually lost very little work. > > > > Lesson of the day: Always backup. Eventually you'll be glad you did. > > > > Cheers, > > Daniel. > > Also: > CVS > alias rm='rm -i' > vim: set backupdir=/tmp [I presume the *~ files come from vim?] Instead of the alias for rm, you could place a file called "-i" [1], in directories of importance (or all). This works well for multi-user machines, because it then doesn't matter whether the user has rm aliased or not. --ibz. [1] - e.g. "touch -- -i" --