← Useful Tips
Linux / WSLLinux

Ctrl + W: Delete the word before the cursor

Use Ctrl + W to delete the word before the cursor. It is especially handy when you live in terminals and repeat long commands.

Ctrl + W

Why it helps

Use Ctrl + W to delete the word before the cursor. It is especially handy when you live in terminals and repeat long commands.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
Ctrl + W: Delete the word before the cursorCtrl + Wdelete the word before the cursorhow to delete the word before the cursorLinux / WSL delete the word before the cursor

Related tips