As a software engineer that lives too much of his life on a computer, I like keeping my machine as clean as possible. I don’t keep rogue downloaded files and removes apps when I don’t need them. Part of keeping a clean, performant system is removing empty directories.
To identify empty directories, I use the following command:
find . -type d --empty
To remove empty directories, we can add a --delete
flag:
find . -type d --empty --delete
Keeping a clean machine is easy when you know the tools that can help you. find
makes identifying and eliminating easy, so don’t be afraid to use it!
6 Things You Didn’t Know About Firefox OS
Firefox OS is all over the tech news and for good reason: Mozilla’s finally given web developers the platform that they need to create apps the way they’ve been creating them for years — with CSS, HTML, and JavaScript. Firefox OS has been rapidly improving…
7 Essential JavaScript Functions
I remember the early days of JavaScript where you needed a simple function for just about everything because the browser vendors implemented features differently, and not just edge features, basic features, like
addEventListener
andattachEvent
. Times have changed but there are still a few functions each developer should…
Spyjax: Ajax For Evil Using Dojo
The idea of Spyjax is nothing new. In pasts posts I’ve covered how you can spy on your user’s history with both MooTools and jQuery. Today we’ll cover how to check user history using the Dojo Toolkit. The HTML For the sake of this…
CSS Ellipsis Beginning of String
I was incredibly happy when CSS
text-overflow: ellipsis
(married with fixedwidth
andoverflow: hidden
was introduced to the CSS spec and browsers; the feature allowed us to stop trying to marry JavaScript width calculation with string width calculation and truncation. CSS ellipsis was also very friendly to…
Source link