My Weekly Scheduled Jobs
Every Sunday, I perform a set of jobs on all my computers. They help optimize the system, save hard disk space, increase security and privacy, etc.
Clean: Using CCleaner, I clean the PCs including all the browser caches and various other application caches. (Read my introduction to CCleaner here.)
Disk Cleanup: I run disk cleanup ($ leanmgr) on all the drives.
Registry: I run a registry cleaner (these days CCleaner itself) to clean the registries, after taking a backup of the current registry set.
Virus Scan: I run an entire PC scan, not just the scan across the “commonly infected areas”.
Defragment: Using the disk defrgamenter ($ defrag –a <drive>), I first analyze all the drives and if necessary defragment the recommended ones.
Updatedb: I update the Cygwin file index.
Backup: I take a backup of all important data on my Transcend Extensible Hard disk. A good idea, don’t you think?
Image Sources: CCleaner, Disk Cleanup and Disk Defragmenter.
Locate: A Desktop Search Alternative
Every once in a while, there is some file that you know you’ve saved but yet can’t find it. Windows Search comes handy at such times but is very slow. Windows Desktop Search, a new utility that is now being shipped with the Windows OSs and being given as an update works using indexing. I think it was started to beat the competition of Google Desktop Search.
IMHO, both Windows and Google Desktop Search consume too many resources.
e.g. Windows Desktop Search recommends Pentium 1 GHz Processor and 256 MB RAM, 500 MB of free hard disk space,… A process that starts automatically all the time. Note that we don’t search for files on our desktop all the time and mostly have an idea which file sits in which folder. A desktop search is for that occasion where we’ve “lost” some file, now and then.
Cygwin provides the best alternatives: locate and find.
locate coupled with updatedb helps you find any file (even hidden ones and those in temporary cache folders) in your system.
When you run the updatedb ($ updatedb), as the name suggests, it updates its database creating a simple index of all the files that are present in the system, with full paths. The first time you run it, like any other indexing application, it takes a few minutes to index the whole system. From the next time, it barely takes a minute, if you run it periodically, that is. I run updatedb about once every week to keep the index fresh.
After updating the file index, you can start using locate.
$ locate <substring-of-filename>
gives you all the files on your PC which contain the substring in their filenames, within a second. Even the files that accidentally got saved in some obscure temporary folder can be retrieved easily.
There are more options to update and locate files with extra preferences but I never had to use them much. The default usage suffices.
The great thing, apart from the speed of retrieval, is that this is not resource intensive and a dedicated process is not always running on your system for it. Of course, you need Cygwin installed.

























