Category Archives: General

VPS Sale

Over at Ruby Ring Technologies they have reduced there VPS prices to an almost insane level.  Check out the prices.

All the VPS’s include 1IP Address, at least 2GHz of CPU Power, and 10Mbps Unmettered Bandwidth ! http://rubyringtech.com/vps_solutions.html

VPS256

  • OpenVZ
  • 10 GB’s Disk Space
  • 256 MB’s RAM
  • 512 MB’s Burstable
  • $4.49/Month

VPS512

  • OpenVZ
  • 25 GB’s Disk Space
  • 512 MB’s RAM
  • 768 MB’s Burstable
  • $7.49/Month

VPS1024

  • OpenVZ
  • 50 GB’s Disk Space
  • 1024 MB’s RAM
  • 1280 MB’s Burstable
  • $9.49/Month

Delete Files Older Than x Days

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.

Command Syntax

find /path/to/files* -mtime +5 -exec rm {} \;

Note that there are spaces between rm, {}, and \;

Explanation

  • The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.
  • The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.
  • The third argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.

This should work on Ubuntu, Suse, Redhat, or pretty much any version of linux.

Source: http://www.howtogeek.com/howto/ubuntu/delete-files-older-than-x-days-on-linux/