Keyboard navigation

Last updated: 31/10/2024

Some keyboard shortcuts for navigating the terminal. No need to remember all of these obviously but they do help!

Shortcut table

Keyboard inputs Description
Right arrow
OR
Ctrl + F
Move terminal cursor to the right.
Left arrow
OR
Ctrl + B
Move terminal cursor to the left.
Up Arrow Show previous command that you've used before.
Down Arrow Show next command that you've used before.
Tab ⇆ Auto-complete what you're typing.
Tab ⇆ (x2) List all possible completions.
Ctrl + A Move to the start of line you're typing.
Ctrl + E Move to the end of line you're typing.
Ctrl + U Delete everything on the left side starting from the cursor.
Ctrl + K Delete everything on the right side starting from the cursor.
Ctrl + W Delete a word before the cursor.
Ctrl + L Clear the terminal screen.
Ctrl + C Stop current process or command.
Ctrl + Z Pause current process or command. To resume type fg in the terminal.
Ctrl + D Log out, close a tab inside the terminal or exit the terminal.
Ctrl + R Search command history.
Ctrl + Shift + C Copy selected text (you must use the mouse cursor for selecting text).
Ctrl + Shift + V Paste copied text.
Ctrl + Shift + N Open another new terminal window.
Ctrl + Shift + T Open a new tab inside the terminal
Ctrl + Tab ⇆ Switch between tabs inside the terminal.