Timeline for Can the "find" command work more efficiently to delete many files?
Current License: CC BY-SA 3.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 5, 2016 at 8:45 | vote | accept | donatello | ||
| Sep 3, 2014 at 4:19 | history | edited | Volker Siegel | CC BY-SA 3.0 |
added 801 characters in body
|
| Sep 2, 2014 at 8:49 | history | edited | Volker Siegel | CC BY-SA 3.0 |
Add tree traversal reference
|
| Aug 29, 2014 at 3:03 | comment | added | pqnet |
@StéphaneChazelas That's the reason find has to collect all the information before actually deleting, because it knows that deleting stuff changes the modification time.
|
|
| Aug 29, 2014 at 0:11 | history | edited | Volker Siegel | CC BY-SA 3.0 |
added 368 characters in body
|
| Aug 28, 2014 at 23:20 | comment | added | Volker Siegel | @bowlofred Thanks for pointing it out; No, that is still fast, only done a little different. I'll find an illustration of what we talk about... | |
| Aug 28, 2014 at 23:14 | comment | added | donatello |
@bowlofred - So you do not expect the find ... | xargs ... to perform any better?
|
|
| Aug 28, 2014 at 22:38 | comment | added | BowlOfRed | The alternative to -depth is not a "breadth-first" search. Find always does depth-first searching. The alternatives are parent-first (default) and children-first (-depth). | |
| Aug 28, 2014 at 20:31 | comment | added | donatello | Thank you for the in-depth answer. I will test what you have explained. I have edited my question with the data you requested. | |
| Aug 28, 2014 at 6:31 | comment | added | Volker Siegel | Good point - but as long as we delete the files like this, it should not be a problem, right? And deleting the remaining directories would be more naturally based on them being empty anyway. | |
| Aug 28, 2014 at 6:27 | comment | added | Stéphane Chazelas | Note that deleting a file will set the modification time of the directory it is linked to. | |
| Aug 28, 2014 at 6:16 | history | edited | Volker Siegel | CC BY-SA 3.0 |
added 257 characters in body
|
| Aug 28, 2014 at 5:21 | history | edited | Volker Siegel | CC BY-SA 3.0 |
added 257 characters in body
|
| Aug 28, 2014 at 4:50 | history | answered | Volker Siegel | CC BY-SA 3.0 |