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
remove_empty_dirs.sh
find . -depth -type d -print0 | xargs -0 -n32 -P32 rmdir -v
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow