Skip to content

Instantly share code, notes, and snippets.

@zz85
Last active August 31, 2018 07:00
Show Gist options
  • Save zz85/0d57491c5fe3aacb5e59c80a3ab202e8 to your computer and use it in GitHub Desktop.
Save zz85/0d57491c5fe3aacb5e59c80a3ab202e8 to your computer and use it in GitHub Desktop.
OSX Terminal Shortcuts (/Working with Long Terminal Commands)
Movements
Esc - F (Forward a word)
Esc - B (Back a word)
Ctrl - A (Start of line)
Ctrl - E (End of line)
Ctrl - F (Next line)
Ctrl - B (Previous line)
Deletions
Ctrl - D (Delete char under cursor)
Ctrl - H (Delete char before cursor / Backspace)
Ctrl - W (Delete word backwards)
Ctrl - U (Delete up a line)
Others
Ctrl - R (Backward search)
Ctrl - T (Swap characters)
Ctrl - X (select? Ctrl - E to edit)
Ctrl - L (clear line, same with Cmd-K)
Ctrl - D (Exit Terminal)
Ctrl - Z (Background)
Iterm
Cmd - D (Split Iterm Window)
Cmd - Shift - D (Split Iterm Window Vertically)
Cmd - K (Clear buffer)
Cmd - / (Find cursor)
Cmd - , (Settings)
Cmd - N (New Window)
Cmd - M (Minimize)
Ctrl - E Invoke Editor for command (or fc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment