The turn around would be to declare a function in your shell called "del" as under:
#of course you will have to create .Trash directory
del () { /bin/mv -i ${*} ~/.Trash; }
as suggested by mervTormel
What it actually does is instead of deleting the file(s) it moves the file to a ~/.Trash directory. So, even if you accidentally delete a file, the file can be retried/restored again from ~/.Trash Directory.
No comments:
Post a Comment