Command line Editing Bash has two command modes, one emacs-like and one vi-like. Emacs mode run 'set -o emacs' to enter this mode. (It's the default.) up/down arrow goes to previous/next history line right/left arrows move right/left ctrl-a moves to beginning of line ctrl-e moves to end of line ctrl-w deletes previous word ctrl-d deletes char under the cursor