Enable Option Key as Meta in iTerm. Set as Esc+ - http://stackoverflow.com/a/438892
Ctrl + aGo to the beginning of the line (Home)Ctrl + eGo to the End of the line (End)Ctrl + pPrevious command (Up arrow)Ctrl + nNext command (Down arrow)Alt + bBack (left) one wordAlt + fForward (right) one wordCtrl + fForward one characterCtrl + bBackward one characterCtrl + xxToggle between the start of line and current cursor position
Ctrl + LClear the Screen, similar to the clear commandCtrl + uCut/delete the line before the cursor position.Alt + DelDelete the Word before the cursor.Alt + dDelete the Word after the cursor.Ctrl + dDelete character under the cursorCtrl + hDelete character before the cursor (backspace)Ctrl + wCut the Word before the cursor to the clipboard.Ctrl + kCut the Line after the cursor to the clipboard.Alt + tSwap current word with previousCtrl + tSwap the last two characters before the cursor (typo).Esc + tSwap the last two words before the cursor.Ctrl + yPaste the last thing to be cut (yank)Alt + uCapitalize every character from the cursor to the end of the current word.Alt + lLower the case of every character from the cursor to the end of the current word.Alt + cCapitalize the character under the cursor and move to the end of the word.Alt + rCancel the changes and put back the line as it was in the history (revert).Ctrl + _UndoTabTab completion for file/directory names
Ctrl + rRecall the last command including the specified character(s) (equivalent to : vim ~/.bash_history).Ctrl + pPrevious command in history (i.e. walk back through the command history)Ctrl + nNext command in history (i.e. walk forward through the command history)Alt + .Use the last word of the previous commandCtrl + sGo back to the next most recent command. (beware to not execute it from a terminal because this will also launch its XOFF).Ctrl + oExecute the command found via Ctrl+r or Ctrl+sCtrl + gEscape from history searching mode
Ctrl + CInterrupt/Kill whatever you are running (SIGINT)Ctrl + lClear the screenCtrl + sStop output to the screen (for long running verbose commands)Ctrl + qAllow output to the screen (if previously stopped using command above)Ctrl + DSend an EOF marker, unless disabled by an option, this will close the current shell (EXIT)Ctrl + ZSend the signal SIGTSTP to the current task, which suspends it. To return to it later enter fg 'process name' (foreground).