Sunday, 2 June 2013

Trash bin for linux [duplicate]

Trash bin for linux [duplicate]

This question already has an answer here:
Make `rm` move to trash 3 answers
Please understand that I know that rm is used to delete files in most linux distros. So what I'm looking for is something that would move files to /trash when delete is invoked from Windows on a linux shared drive.
If thats confusing allow me to provide a sample
Sally has one file named "foo" in a directory. She accidentally deletes the file
from Windows on her shared "bar" directory. In order to prevent this accidental behavior
occuring in the future she wishes to have all deleted files migrated to /trash.
How do I go about doing this?
For reference. I already have made a script that changes
rm
to
mv $1 /trash
Thanks!
EDIT: Im not looking to have trash-cli take care of this issue. I would like to write as much of this as possible on my own but don't know where to start.

No comments:

Post a Comment