!$ matches last token in previous command !# matches token 0 in previous command !* matches tokens 1-N in previous command !:n matches nth token in previous command !! matches entire previous command !m matches command "m" in history list !m:n matches nth token in command "m" in history list !m:gs/a/b/ global search-and-replace on command "m" in history list (f!ing cool!) CTRL-r activates reverse search... i.e. searches back through history list for the pattern you type in, and bring up the command found with that pattern in it CTRL-a move to beginning of line CTRL-e move to end of line CTRL-b move back one char CTRL-f move forward one char ALT-b move back one word ALT-f move forward one word CRTL-k delete to end of line