Bash How To Find and Delete Empty Directories

  • Post by Mike Dixson
  • Apr 01, 2015
post-thumb

Useful bash snippet to find empty directories
find <em>ROOTDIRECTORY</em> -depth -empty -type d

Useful bash snippet to find empty directories AND delete them!
find <em>ROOTDIRECTORY</em> -depth -empty -type d -delete

LATEST POST
  • Post By Mike Dixson
  • Nov 17, 2020
Using MFA for Sudo Only
  • Post By Mike Dixson
  • Jul 25, 2020
Fixed: Obelisk not working in Ableton Live
  • Post By Mike Dixson
  • Jun 15, 2020
BYOBU files being flagged by rkhunter
TAG