Frequently used command line shortcut keys (Mac)
Move cursor to the beginning of a line
- Ctrl + f
- Move one character forward dd>
- Ctrl + a
- Move to the beginning of the line dd>
- After escaping, f dt>
- Move forward one word dd>
# Move cursor to end of line
- Ctrl + b
- Move one character backward dd>
- Ctrl + e
- Move to the end of the line dd>
- After escaping, b dt>
- Move backward by one word dd>
# Delete characters
- Ctrl + h
- Delete one character after dd>
- Ctrl + d
- Delete one character at the cursor position dd>
- Ctrl + w
- Delete one word separated by trailing space dd>
# Cut and paste
- Ctrl + k
- Cut from the cursor position to the end of the line dd>
- Ctrl + u
- Cut from the cursor position to the beginning of the line dd>
- Ctrl + y
- Paste dd>
# Clear screen
- Ctrl + l
- Clear screen dd>