SlightlyLoony
Tera Contributor

find_real_file.pngAre you a command line maestro (like Captain Command Line at right)? Newbie? Whichever description fits you better, you'll almost certainly learn something interesting at Command-line-fu. This site lets anybody propose their favorite command line tricks, tips, and hacks — and then lets the whole community vote them up or down, and comment on them. If you use the command line every day, as I do, you'll find all sorts of clever and novel things here.

For example, one thing I learned is a very fast way to correct a mis-typed command. For instance, suppose I accidentally typed:

$ cd /Users/SlightlyLoopy


Misspelled my own name! Rather than retype the entire thing, or up-arrow, backspace, and correct, I can simply enter:

$ ^p^n


This replaces any "p" characters in the previous command with "n" characters, and re-runs it. The two strings can be any length.

Lots more geekly goodies at the link...