Controlling the Spotlight indexing on Mac OS X

Sometimes your Spotlight starts to behave by re-indexing your disks over and over again, and you’ll either need to clear the Spotlight index for the drive or just disable the indexing for that particular volume if you don’t use the search often. The Mac OS X Spotlight is controlled by the ‘mdutil’ tool on Snow Leopard and Lion, so first of all get the current state of the things by typing this into your Terminal session:

mdutil -sa

The output will show the Spotlight index status for all connected volumes.

Continue reading

Downloading files from the Internet using the command line on Mac OS X

The first time you try to download a file using the Terminal on Mac OS X, you’ll find out that there is no ‘wget’ or ‘fetch’ installed into the base system. Inquiring minds can find a solution after bashing their Tab key for a few near-random auto-complete guesses, but I’ll save you from that humiliating experience 🙂 Please welcome the ‘ftp’ tool. A fast visit to the man page for it will result in knowing that it’s not limited to the FTP only, and you can use it to download files over HTTP as well.

Continue reading