Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.