Find Empty Directories from Command Line

[ad_1]

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

To establish empty directories, I exploit the next command:

discover . -type d --empty

To take away empty directories, we will add a --delete flag:

discover . -type d --empty --delete

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

  • Conquering Impostor Syndrome

    Two years in the past I documented my struggles with Imposter Syndrome and the response was immense.  I acquired messages of assist and commiseration from new net builders, veteran engineers, and even individuals of all expertise ranges in different professions.  I’ve even caught myself studying the publish…

  • Tips for Starting with Bitcoin and Cryptocurrencies

    Some of the rewarding experiences of my life, each financially and logically, has been shopping for and managing cryptocurrencies like Bitcoin, Litecoin, Ethereum. Like studying another new tech, I made rookie errors alongside the way in which, however realized some finest practices alongside the way in which. Try…

  • JavaScript Copy to Clipboard

    “Copy to clipboard” performance is one thing all of us use dozens of instances every day however the shopper aspect API round it has at all times been missing; some older APIs and browser implementations required a scary “are you positive?”-style dialog earlier than the content material could be copied to clipboard — not nice for…

  • Better Pull Quotes with MooTools

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *