HomeSoftware DevelopmentFind Empty Directories from Command Line

Find Empty Directories from Command Line

As a software program engineer that lives an excessive amount of of his life on a pc, I like protecting my machine as clear as doable. I do not preserve rogue downloaded information and removes apps once I do not want them. A part of protecting a clear, performant system is eradicating empty directories.

To determine empty directories, I take advantage of the next command:

discover . -type d --empty

To take away empty directories, we are able to add a --delete flag:

discover . -type d --empty --delete

Maintaining a clear machine is straightforward when you recognize the instruments that may enable you to. discover makes figuring out and eliminating simple, so do not be afraid to make use of it!

  • Create Namespaced Classes with MooTools

    MooTools has at all times gotten a little bit of grief for not inherently utilizing and standardizing namespaced-based JavaScript lessons just like the Dojo Toolkit does.  Many builders create their lessons as globals which is mostly frowned up.  I largely disagree with that stance, however every to their very own.  In any occasion…

  • CSS Filters

    CSS filter assist lately landed inside WebKit nightlies. CSS filters present a technique for modifying the rendering of a fundamental DOM component, picture, or video. CSS filters permit for blurring, warping, and modifying the colour depth of parts. Let’s have…


Most Popular

Recent Comments