Skip to content

Instantly share code, notes, and snippets.

@yoeun
Created September 20, 2016 18:27
Show Gist options
  • Select an option

  • Save yoeun/2f0fc12dd79729a40803719eb8b9b558 to your computer and use it in GitHub Desktop.

Select an option

Save yoeun/2f0fc12dd79729a40803719eb8b9b558 to your computer and use it in GitHub Desktop.
Fast method to delete all files in a large folder
# 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