Timeline for Can the "find" command work more efficiently to delete many files?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2015 at 6:51 | history | edited | SysadminB | CC BY-SA 3.0 |
The `-r` option is a force of habit, my bad.
|
| Aug 29, 2014 at 3:05 | comment | added | pqnet |
You look a bit confused: you are specifying -type f and rm -r together. This does not make sense: do you want to delete directories or not?
|
|
| S Aug 28, 2014 at 6:48 | history | suggested | HalosGhost | CC BY-SA 3.0 |
use code escapes where sensible
|
| Aug 28, 2014 at 6:29 | comment | added | Stéphane Chazelas |
That calls one rm per file. rm accepts more than one file as argument, so -exec rm -rfv {} + is going to be a lot faster.
|
|
| Aug 28, 2014 at 6:29 | review | Suggested edits | |||
| S Aug 28, 2014 at 6:48 | |||||
| Aug 28, 2014 at 6:28 | review | First posts | |||
| Aug 28, 2014 at 6:29 | |||||
| Aug 28, 2014 at 6:27 | history | answered | SysadminB | CC BY-SA 3.0 |