Delete Characters Delete the character before the
cursor.
Delete or Backspace
Delete the character at the cursor.
Ctrl+d
Delete all characters from the cursor to the end of the command line.
Ctrl+k
Delete all characters on the command line.
Ctrl+u or Ctrl+x
Delete the word before the cursor.
Ctrl+w, Esc+Backspace, Alt+Delete, or Alt+Backspace
Delete the word after the cursor.
Esc+d or Alt+d