Fast parallel removal of empty directories using find and xargs
The following command will recursively find and remove empty directories in the current directory tree. It uses xargs
to do it in parallel
find . -depth -type d -print0 | xargs -0 -n32 -P32 rmdir -v
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow