Shell Character Manipulation

  • Ctrl+A / Ctrl+E — moves the cursor to the start and end of the line
  • Ctrl+B / Ctrl+F — moves the cursor backward or forward within the line
  • Ctrl+left / Ctrl+right — moves the cursor by one word at a time
  • Esc then B or F — moves the cursor by one word at a time
  • Ctrl+D / Del — deletes the character under the cursor
  • Ctrl+K — deletes all text from the cursor to the end of the line
  • Ctrl+X / Backspace — deletes all the text from the cursor to the beginning of the line
  • Ctrl+T — transposes the character before the cursor with the character under the cursor
  • Esc then T — transposes the two words immediately before (or under) the cursor
  • Esc then U — converts text from the cursor to the end of the word to uppercase
  • Esc then L — converts text from the cursor to the end of the word to lowercase
  • Esc then C — converts the letter under the cursor (or the first letter of the next word) to uppercase
  • Ctrl+X then Ctrl+E — attempts to launch the editor defined by $FCEDIT or $EDITOR or Emacs
  • to set the ‘Vi’ editor as default, type ‘set -o vi’
Scroll to top