Created
September 20, 2016 18:27
-
-
Save yoeun/2f0fc12dd79729a40803719eb8b9b558 to your computer and use it in GitHub Desktop.
Fast method to delete all files in a large folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # when 'rm -rf *' fails with 'Argument list too long' | |
| printf '%s\0' * | xargs -0 rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment