set -o emacs

Category: Terminal Configuration

set -o emacs

Enable emacs keybindings in your shell (default)

Emacs mode is the default for most shells. Ctrl+A (beginning of line), Ctrl+E (end), Ctrl+W (delete word back), Ctrl+K (kill to end). If you've switched to vi mode and want to go back, use this.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.