Skip to content

↑↓ moveEnter openEsc close

Claude Code keyboard shortcuts for Linux

Claude Code 2.x · 34 shortcuts · checked Nov 2026 · Source: Anthropic docs

33 default Claude Code shortcuts on Linux, grouped by task.

33 shortcuts
Keys:
ActionKeys
Stop Claude while it is workingEsc
Rewind the conversation or codePrompt is emptyEsc,Esc
Cycle permission modes (normal, auto-accept, plan)ShiftTab
Switch the modelAltP
Turn extended thinking on or offAltT
Move a running command to the backgroundA command is runningCtrlB
Show or hide the to-do listCtrlT
Show the full transcriptCtrlO

Input

6 shortcuts
ActionKeys
New line in the promptShiftEnter
Paste an image from the clipboardCtrlV
Edit the prompt in your text editorCtrlG
Cancel the input or generationCtrlC
Exit Claude CodePrompt is emptyCtrlD
Clear the terminal screenCtrlL

History

3 shortcuts
ActionKeys
Previous prompt↑
Next prompt↓
Search prompt historyCtrlR

Prompt shortcuts

6 shortcuts
ActionKeys
Show the shortcut listPrompt is emptyShift/
Open slash commandsStart of the prompt/
Run a shell command directly (bash mode)Start of the promptShift1
Mention a file or folderShift2
Accept the suggestion or file pathTab
New line (works in any terminal)CtrlJ

Editing the prompt

10 shortcuts
ActionKeys
Go to the start of the lineCtrlA
Go to the end of the lineCtrlE
Back one word| On a Mac, set Option to act as Meta in your terminal.AltB
Forward one word| On a Mac, set Option to act as Meta in your terminal.AltF
Delete to the end of the lineCtrlK
Delete to the start of the lineCtrlU
Delete the previous wordCtrlW
Paste the text you deletedCtrlY
Cycle through earlier deleted textRight after Ctrl+YAltY
Suspend Claude Code to the shell| Type fg to come back. Not on Windows.CtrlZ

These are the default Claude Code key bindings on Linux, from Anthropic's official list for version 2.x. Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.

Other systems: Claude Code shortcuts for Mac, Claude Code shortcuts for Windows. Or print the Claude Code cheat sheet.