0

I was removing a directory by rm -r mydir and cancelled it in the middle. How can I find out what have been removed under the directory?

Does remove a content of a directory change the timestamp of the directory? Modification, access, or change timestamps?

I have a backup from two weeks ago. about 30% changes happened since then: new subdirectories, and files move between subdirectories, etc. How can I compare between my current dir and its old backup?

Thanks.

  • If you have GNU diff, you can run it on both directories - it should report differing and missing (or new) files. – muru Mar 24 '15 at 16:46
  • @muru: Thanks. Is it sufficient to check only those files or directories appearing in the backup not in the current source, and ignore those only appearing in the current source not in the backup, and ignore those files appearing in both but differ? – Tim Mar 24 '15 at 17:39
  • I think so, since the third is essentially a superset of the second. – muru Mar 24 '15 at 17:48
  • The 3rd isn't a superset of the 2nd? I asked if it is sufficient ignoring BOTH 3rd AND 2nd, and only focus on the 1st? – Tim Mar 24 '15 at 17:54
  • It is, and again, yes. – muru Mar 24 '15 at 17:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.