- Published:
- June 18, 2010 – 6:05 pm
- Author:
- By Dave
We received a tip from blog readers Christian and Michael for alternatives to the command to delete all directories older than a certain period of time. These both work in bash and can be used in scripts to clean up old backup directories or any situation where you need to delete old directories from the command line. From Christian: find /home/backup/ -maxdepth 1 -type d -mtime +7 -exec rm -r {} \; From Michael: find /home/backup/ -maxdepth 1 -type d -mtime +7 -exec echo “Removing Directory => {}” \; -exec rm -rf “{}” \; The first one works quietly, while the second one will display what is being deleted. These are probably faster than putting it into a for loop, so feel free to use whatever works best in your particular situation!
Categories: Linux,Shell,System Administration
Tagged: bash, oneliner, tips
- Published:
- June 7, 2010 – 10:29 pm
- Author:
- By Dave
It had to be back in 2005 or so when I first started talking about device convergence. I said that within a few years (I originally said 3 years, so I wasn’t too far off) that we would have a mobile device convergence of cell phones, mp3 players, and cameras. You could see it coming even if the current technology in 2005 wasn’t up to the quality of each individual device. Now that the iPhone 4 takes 720p video at 30fps we have a worth competitor which crosses the finish line. There is still some room for improvement that Apple and the other phone manufacturers should take note of. The first phone I noticed which actually started this convergence was the Sony Ericsson Walkman phones (W series, W580i, etc). The problem with these phones was the interface, which was horrible. You could listen to a lot of music due to….
Categories: Site Updates
Tagged: iphone, obligatory