How do I delete a large number of files in Linux?

How do I delete a large number of files in Linux?
Answer
“Fastest way to delete large amount of files in linux”
  1. Find Command with -exec. example: find /test -type f -exec rm {} …
  2. Find Command with -delete. example: …
  3. Perl. example: …
  4. RSYNC with -delete. This can be achieved by simply synchronizing a target directory which has the large number of files, with an empty directory.
 

Tìm kiếm

Back
Top