How do I delete large files in UNIX?

How do I delete large files in UNIX?
Answer
If you just want to get rid of many files as soon as possible
ls -f1 /path/to/folder/with/many/files/ | xargs rm might work okay, but better don’t run it on production systems because your system might become IO issues and applications might get stuck during the delete operation.
 

Tìm kiếm

Back
Top