This is a "Mini-hint." I tend to use the terminal a lot, and sometimes I'll run a line or two from a hint I find on here. What I did was to write a short shell script to help me find old commands that I have run. Bash keeps a history of commands you run in terminal, so you just need to search it to find what you're looking for. Make a new plain text document in the editor of your choice, with these contents:
more ~/.bash_history | grep $1
Save it as /usr/bin/remember or some other name that's easy to keep track of (and in your PATH). Make it executable in the Terminal by typing:
chmod +x /usr/bin/remember
Now you can remember an old command by typing:
remember command-fragment-here
This may or may not be useful for you, but I use it from time to time.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20040314224003139