Posted by: Vasily Tarasov
on June 17, 2008 06:55 PM
I personally don't think so. I use bash autocompletion a lot and sometimes it happens that I remove a wrong file. The only solution in this case on ext3 filesystem (if you don't have a copy :)) is to grep your hard drive and pray that the information was not overwritten. So trash is a very nice tool for me. I just need to use to use it instead rm. ;) Also aliasing rm to trash will force a lot of scripts to use it, which is not always what you want.
An interesting question for me is which tool is faster? Have anybody measured trash vs rm on a large directory? As trash is written in python it is inherently slower plus it needs to do some accounting, but on the other hand it does not use sys_unlink(), which can be slower than sys_rename()...
Re: Bringing the trashcan to the command line
Posted by: Vasily Tarasov on June 17, 2008 06:55 PMAn interesting question for me is which tool is faster? Have anybody measured trash vs rm on a large directory? As trash is written in python it is inherently slower plus it needs to do some accounting, but on the other hand it does not use sys_unlink(), which can be slower than sys_rename()...
#