Skip to content

↑↓ moveEnter openEsc close

Back one character in Bash

Bash Bash 5.2 / Zsh 5.9 · 36 shortcuts · checked Nov 2026 · Source: GNU Project docs

In Bash and Zsh, press Ctrl+B on Mac, Linux, Windows.

What else uses Ctrl+B?

More Bash shortcuts: moving the cursor

ActionMacLinuxWindows
Go to the start of the lineCtrlACtrlACtrlA
Go to the end of the lineCtrlECtrlECtrlE
Back one wordOptionBAltBAltB
Forward one wordOptionFAltFAltF
Forward one characterCtrlFCtrlFCtrlF
Jump between the start of the line and the cursorCtrlX,CtrlXCtrlX,CtrlXCtrlX,CtrlX

All 36 Bash shortcuts