Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[Fast Delete] Fast delete big folders #bash #debian #fast #delete #big #folders

Fast delete with rsync

mkdir /tmp/empty
rsync -a --delete /tmp/empty /tmp/big_folder/

And with Perl

cd yourdirectory
perl -e 'for(<*>){((stat)[9]<(unlink))}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.