Posts Tagged ‘Mac OS X’

locate your files!

Tuesday, April 24th, 2007

This is just a quick set of tips about the super-duper-handy locate command at, well, the command line.

First off, it’s called locate. If you don’t have it installed, it may be contained in a package called findutils-locate (a “shout-out” to all my fellow SUSE distro users)

Secondly, to manually update the locate command’s database (it automatically runs each night), you type (as root): updatedb …and wait for a while.

Thirdly, in your shell of choice, alias locate='locate -i' …and you’ll get case-insensitive locate! Combined with grep (especially grep -i; i also happens to be its case-insensitive flag too), you’ll be finding files in your hard drive quite easy from now on…

I use locate all the time, especially whenever I’m looking for a quick path to find a graphic I of which know the filename (or part of a filename). For example:

locate information | grep png | grep 48

Will return something like (depending on your distribution):


Search history in bash

Thursday, October 13th, 2005

This is another quick tip: to search typed history at a bash prompt, hit control-r and start typing a command you used previously. It doesn’t have to start with what is typed, as it returns matches which contain the searched text.

Hit control-r again (while searching), and it will jump back further in history and search with the same text.

Hitting enter when bash finds something will run the command while hitting the arrow keys will allow you to move around and edit the command. The escape key will also exit the search and place the historical command on your command line. To cancel the search entirely, use control-c and you’ll be returned to a clean prompt (although the matching string will be presented above where you’re typing).

GIMP 2.0

Thursday, March 25th, 2004

The GIMP, the world famous freely available open source image editing software (available for UNIX, Linux, Windows, and Mac OS X), is now at version 2.0 (pdf). To celebrate, the website has been updated as well.

Thursday, March 25th, 2004

For those of you with Mac OS X, you can easily install the GIMP just like any other Mac application (once you have Apple’s X11 installed). Check out pointed it out on IRC.)

Attack of the worms

Wednesday, March 3rd, 2004

Have you been wondering why you have been getting a lot more worms in your email? So have I. It seems a battle of worm writers is afoot.

Most anti-virus and email filtering software isn’t catching these (yet), so it’s very annoying. At least all the machines I use either run Linux (Fedora) or Mac OS X, so nothing bad COULD happen, even if I did click on the files to launch them (like someone who doesn’t like better).

“Every OS Sucks”

Thursday, January 15th, 2004

Every OS Sucks is a funny music video (well, funny if you’re a computer geek). Mac OS, Windows, and Linux are all mentioned. As seen on Scoble’s web log.

Scorched Earth in 3D

Friday, December 19th, 2003

The famous "Scorched Earth" game from ancient computer times is back, and this time it’s in three dimensions! Scorched 3D is the update of the game, and not only is the source under the GPL, it is also available for several platforms including Linux, Windows, Mac OS X, and Solaris. The game also has network play, including support for playing people over the Internet as well as a LAN.