|
From: | Joni Larsen-Haikarainen aka Lejon |
Subject: | A tip.. |
Date: | Wed, 07 Jul 2004 18:46:52 GMT |
User-agent: | Mozilla Thunderbird 0.7.1 (X11/20040626) |
Use your favorit editor. and save a empty file named -i in all directorys containing things that must not be removed by mistake. The effect of this is that if u type: rm -Rf * in a directory containing the file -iThat file will be read as the -i flag, making sure to ask you if you realy are sure you want to preform that action.
Charles Fox wrote:
Thanks -- I did it using the force option, rpm -f, to force the rpm to 'overwrite' the .so file. Re. being so stupid as to delete system files... I was once told the whole point of linux was that you were supposed to break it and fix it to learn how it works... :) Would it be a good idea for me to rename the rm program to rm2, and define my own rm that moves files to the trash? Or is that likely to cause problems anywhere? Is that a common thing to do?
[Prev in Thread] | Current Thread | [Next in Thread] |