Adam Michael Roach's picture

Delete All Empty Folders from a Directory

Have you ever had a bunch of empty folders in one place that you wanted to get rid of without needing to go through each one first and verify that is empty? The following command will do just that:

WARNING: DO NOT RUN THE FOLLOWING COMMAND AS ROOT UNLESS YOU ARE ABSOLUTELY SURE OF WHAT YOU ARE DOING. THIS COMMAND RESULTs IN A LOSS OF DATA AND MAY NOT BE RECOVERABLE.

  1. find /path/to/scan c -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty --parents
Related:
Adam Michael Roach's picture

Recursively Delete all Files in a Directory with a Specific File Extension

This is pretty straight forward. You have a directory with a large amount of files with a particular extension that you want to recursively get rid of. For example, you back up a directory from a Windows machine onto an external hard drive. When you mount that drive on a *nix box you are going to see a bunch of files throughout the directory structure such as thumbs.db, desktop.ini, etc. I don't need that and want to see them anymore. The following commands will solve the problem:

Related:
Adam Michael Roach's picture

Installing Adobe Flash 64 bit in Ubuntu 9.10 Karmic Koala

If you are like me, you probably installed Flash player from the repository, expecting it to work properly. Well, that just isn't the case. For instance, on YouTube or Hulu videos, I wasn't able to push the buttons without first right clicking, then left clicking twice. Weird, huh?

Here's how to get the Adobe Flash 64 bit Alpha for Linux working in Ubuntu 9.10 Karmic Koala.

First, close Firefox. Next, uninstall the following packages if you have them installed:

  1. sudo apt-get remove flashplugin-installer flashplugin-nonfree nspluginwrapper
Adam Michael Roach's picture

Merging Multiple Video Files in Ubuntu Linux

Here's an easy way to combine two video files into one. I did this on Ubuntu, but this should work on most any distribution. First, you need mencoder if you don't already have it. In a terminal:

  1. sudo apt-get install mencoder

After it installs, change to the directory that has the files you want to merge and execute the following command:

  1. mencoder -forceidx -oac copy -ovc copy video01.avi video02.avi video03.avi -o merged_final.avi
Adam Michael Roach's picture

T-Mobile St. Louis gets 3G

I have been a T-Mobile customer for about 5 years. My first phone with them was the Motorola RAZR. I had always been happy with my plan, so I never upgraded phones through them. Instead, I have used phones I purchased second-hand and swapped SIM cards. About a year ago, I bought a used iPhone 2G (Edge) and unlocked/jailbroke it. I had been happily using that along with the T-Zones ($5.99) Internet package that I was grandfathered in with. For the most part, everything worked great.

Adam Michael Roach's picture

Wolfenstein: Enemy Territory on Ubuntu Linux Jaunty Jackalope 9.04

I'm not much of a gamer, but one game that I do enjoy playing is Return to Castle Wolfenstein: Enemy Territory. The following are the steps I took to get Enemy Territory installed and fully updated to version 2.60b (including all Punkbuster updates) on Ubuntu Jaunty Jackalope 9.04. These instructions will work on more distros than just Ubuntu, but you may have different results depending on hardware/software setup. Please be sure to research all of your options before following this or any other tutorial.

Installing Enemy Territory

Syndicate content