Skip to content

↑↓ moveEnter openEsc close

Next command in Bash

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

In Bash and Zsh, press Ctrl+N or ↓ on Mac, Linux, Windows.

Either combination works; the keyboard shows the first. What else uses Ctrl+N? · What else uses ↓?

More Bash shortcuts: history

ActionMacLinuxWindows
Search history backwardsCtrlRCtrlRCtrlR
Cancel the history searchCtrlGCtrlGCtrlG
Previous commandCtrlPor↑CtrlPor↑CtrlPor↑
Insert the last argument of the previous commandOption.Alt.Alt.
Run the command and fetch the next from historyCtrlOCtrlOCtrlO

All 36 Bash shortcuts