Sunday, December 13, 2009

Search your command history

history is the command to "utilize information from previous lines" (from the man page). My most common usage is like this:
history | grep -i pattern
Maybe now that I've recorded it here, I will remember it, and won't have to reference it for the millionth time.

No comments:

Post a Comment