Linux Blog

Cleaning Up Files & Directories

Filed under: Shell Script Sundays — TheLinuxBlog.com at 8:30 am on Sunday, August 19, 2012

While not really a shell script as such, this is shell related and  it just so happens to be Sunday.

Find Empty Directories:

find . -type d -empty > empty_folders.txt

Find Empty Files

find . -type f -empty > empty_files.txt

The issue with these two commands is that within my jumble of unorganized mess I have an abundance of version control repositories (mostly SVN) and tons of source code with empty, but needed directories. Fear not if you have the same problem, you can filter them out by using:

grep -v empty_files.txt svn

Duplicate File Removal

There are multiple ways to remove duplicate files. I used to think a  recursive md5sum script was the way to go but that was before I found the utility fdupes.
Install via your package manager if it’s available and use recursively like:

fdupes -r [directory] > duplicates.txt

With fdupes you also have the ability to symlink or delete files, although because of the amount of source code, I’d rather review it manually.


With these utilities I was able to merge copies of photos remove a bunch of old files and empty directories and am one step closer to being digitally organized. If you have the same problem, hopefully they will help you too. If you have any cleanup or organization tools, please comment and let me know.

Linux Conference This Weekend

Filed under: The Linux Blog News — TheLinuxBlog.com at 12:44 am on Saturday, January 12, 2008

This weekend is FUDCon which happens to be in Raleigh. I’ll be making my way down there tomorrow and will be participating. For those of you who don’t know FUDCon is not Fear Uncertainty and Doubt like I first thought but its a Fedora Users and Developers Conference. It actually started today but is going to be on for the whole weekend. Although I don’t run Fedora as my operating system of choice I do use it from time to time and am interested in some of the events they have going on.

For more information visit: http://barcamp.org/FUDConRaleigh2008

If you happen to be in the area and attend the conference, be sure to say “hi”. I’m not sure what time I will be there but you should see my name tag.

Video Card Failure.

Filed under: Linux Hardware — TheLinuxBlog.com at 11:59 pm on Thursday, November 29, 2007

Linux Blog - Video Card

At the moment I am a little unhappy with my Linux Box. It was making funny sounds (more than normal) the other night so I decided to turn it off. When I turned it back on, it was making even more racket. Turns out that my video card has been toasted, literally. The picture on the left shows the damage. Its pretty evident that the fan stopped spinning and burned up.

So much for my 128MB GeForce FX 5200.

I have an older GeForce laying around somewhere but I’ll have to use the legacy drivers. Until I find the card don’t fear I’ll be continuing to blog on my laptop. Which isn’t the best machine to use, but it will get the job done. Also from this experience I have thought of an blog post to write: dealing with hardware failure.