Clear the screen in Bash
In Bash and Zsh, press Ctrl+L on Mac, Linux, Windows.
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=deleteInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'return
ShiftZXCVBNM,./Shift↑
fnctrloptcmdcmdopt←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlSuperAltAltSuperMenuCtrl←↓→
EscF1F2F3F4F5F6F7F8F9F10F11F12PrtScScrLkPause
`1234567890-=BkspInsHomePgUp
TabQWERTYUIOP[]\DelEndPgDn
CapsASDFGHJKL;'Enter
ShiftZXCVBNM,./Shift↑
CtrlWinAltAltWinMenuCtrl←↓→
See it happen Press the shortcut above, or
More Bash shortcuts: programs and screen
| Action | Mac | Linux | Windows |
|---|---|---|---|
| Stop the running program | CtrlC | CtrlC | CtrlC |
| Suspend the running program | CtrlZ | CtrlZ | CtrlZ |
| Quit the program and dump core | Ctrl\ | Ctrl\ | Ctrl\ |
| End of input; exits the shell on an empty line | CtrlD | CtrlD | CtrlD |
| Pause output | CtrlS | CtrlS | CtrlS |
| Resume output | CtrlQ | CtrlQ | CtrlQ |