Skip to content

↑↓ moveEnter openEsc close

End of input; exits the shell on an empty line in Bash

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

In Bash and Zsh, press Ctrl+D on Mac, Linux, Windows. Works when: empty line.

What else uses Ctrl+D?

More Bash shortcuts: programs and screen

ActionMacLinuxWindows
Stop the running programCtrlCCtrlCCtrlC
Suspend the running programCtrlZCtrlZCtrlZ
Quit the program and dump coreCtrl\Ctrl\Ctrl\
Clear the screenCtrlLCtrlLCtrlL
Pause outputCtrlSCtrlSCtrlS
Resume outputCtrlQCtrlQCtrlQ

All 36 Bash shortcuts