Skip to content

↑↓ moveEnter openEsc close

Paste the last cut text in Bash

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

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

What else uses Ctrl+Y?

More Bash shortcuts: cutting and pasting

ActionMacLinuxWindows
Cut from the cursor to the start of the lineCtrlUCtrlUCtrlU
Cut from the cursor to the end of the lineCtrlKCtrlKCtrlK
Cut the word before the cursorCtrlWCtrlWCtrlW
Cut the word after the cursorOptionDAltDAltD
Delete the character before the cursorCtrlHCtrlHCtrlH
Delete the character under the cursorCtrlDCtrlDCtrlD
Swap the last two charactersCtrlTCtrlTCtrlT
Swap the last two wordsOptionTAltTAltT
Uppercase the wordOptionUAltUAltU
Lowercase the wordOptionLAltLAltL

All 14 in cutting and pasting · All 36 Bash shortcuts