On Tue, 25 Nov 2003 00:52:24 +0100 Norbert Kamenicky <[EMAIL PROTECTED]> wrote:
> Juan �ngel wrote: > > > You could try to rewrite the "rm" program, or the code responsible > > > of deleting in the VFS to "fake" a removal. > > > :-) > > here u can find "safe rm replacement" > which worx in similar way as on windblowz ... > > http://www.cs.ecu.edu/~collins/rm/rm.html Also see: http://www.yoursitemaster.com/open_source/projects/trashcan/index.htm quote: Trash Can is a command line recycle bin for Linux/*NIX based systems. ksh, bash or zsh is needed to operate. Abilities Include: command description 1) rm or throw - file removal 2) trestore - file restoration (original path) 3) delete - permanent deletion of a single file from trash can 4) purge - automatic purging of trash over X number of days old 5) empty - completely empty trash can 6) tkeep - set number of days to keep trash 7) tmax - configure trash can storage capacity 8) prm - Permanent removal of files following this command 9) trash - displays Trash Can disk usage, trash commands, and unique files in trash sorted by name Other Abilities: - Trash is compressed to take up less room. - restore & delete both display a list of files to choose from. - Automatic permanent deletion of 'core' & 'dead.letter' files - Paging is enabled for long trash list. - Entire directories can be removed and restored/deleted. - Prompts user if restoring over and existing file, etc... - Warns you in varying degrees (soft & hard) as your trash can nears maximum storage capacity. - Install script is included for easy installation. It now has the ability to create users on the fly. - Notifies you of files about to be deleted. - Un-Install script is now included for ease of un-installation. It can now handle multiple users: uninstall for a single user, selected users, or all users. - Link deletion/restoration. blah blah blah. So I guess if you are in the habit of deleting things you shouldn't, or you provide support for "people" who do (*and who expect you to recover for them when they screw up), you might want to look at this. Me, I make it a habit to not delete stuff unless I need to. I'm just funny that way. haha Just as an aside, the first thing that gets done when I use windows is I remove the option to copy files to the trash can. When I delete something, I personally have a tendency to make sure that I am not going to need it before I do so and I want it gone. If I need to back it up or I am not sure, I mv the damn thing to a designated backup area. This saves time as my computer doesn't have to cp everything to the trash when I delete something. (yeah, I know I can hold the shift key down, but delete means delete, damn it, not "back it up in case I am a moron".) anyway, back to your regularly scheduled programming. -- ________________________________________ / By protracting life, we do not deduct \ | one jot from the duration of death. -- | \ Titus Lucretius Carus / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || -- [EMAIL PROTECTED] mailing list
