Stuart Barkley (sab_at_4gh.net) wrote: >On Tue, 20 Apr 2004 at 15:08 +0200, Daniel Lang wrote: > >> simple solution: >> alias rm="rm -i" >s/simple/horrible/ > >Go ahead and set this up on your system and start relying upon it. >Then help a friend on his system and wipe out all his files because >you started relying upon the non-standard behavior. IMHO relying on snapshots is also a very bad idea as this might place a very big (tm) burdon on the system, eg if you really want to delete lots of files. And usually, if you want to delete files, you use rm. If you don't, you want to use mv anyway ;-) Someone brought up the idea of a recyclebin, so the best might be to create another rm, eg rrm (recycle-rm) that will move all files that are to be deleted to lost+found with a unique id as name and append the description of origin etc. to a user-specicif descriptor file, also found in lost+found. Add another command like edb (empty dustbin) to delete all relevant files of the specific user, of user root or all users from lost+found and update the descriptor-files (all filesystems or only specific ones). Hmm - maybe a good thing for /usr/ports ;-) Just my 2cents (Euro), HolgerReceived on Wed Apr 21 2004 - 03:48:16 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:51 UTC