June 26, 2018 in Tips and Tricks
how can I recursively delete empty directories in my home directory?
how can I recursively delete empty directories in my home directory? The find command is the primary tool for recursive file system operations. Use the -type dexpression to tell find you’re interested in finding directories only (and not plain files). The GNU version of find supports the -empty test, so will print all empty directories below your current directory. Use find ~ -… or find “$HOME” -… to […]









