Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I used this mktrashcan command mktrashcan deleteMe1 trashcan/

And then i Deleted all the contents inside deleteMe1 directory(rm -rf*).. But then what happend is only the two text files which are inside the deleteMe1(deleteMe2.txt, deleteMe3.txt) directory were moved into the trashcan folder.. Rest of the directories and files inside the directories were not foundd!!

Isn't there any other way, so that whatever is deleted, moves exactly the same way to the trashcan directory??? Or is there Any Other Utility that can perform the same task but in advance way..

mkdir deleteMe1
mkdir deleteMe1/deleteMe2
mkdir deleteMe1/deleteMe3

touch ./deleteMe1/deleteMe2/deleteMe4.txt
touch ./deleteMe1/deleteMe2/deleteMe5.txt
touch ./deleteMe1/deleteMe3/deleteMe6.txt
touch ./deleteMe1/deleteMe3/deleteMe7.txt
touch ./deleteMe1/deleteMe2.txt
touch ./deleteMe1/deleteMe3.txt

Thankss..

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.