Multiple choice technology

What is the command used to Deletes the last word typed in. For example, if you typed 'mv file1 file2' this shortcut would delete file2

  1. CTRL+W

  2. CTRL+B

  3. CTRL+C

  4. CTRL+D

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CTRL+W deletes the word before the cursor in Unix shells - so in 'mv file1 file2', if your cursor is after 'file2', it removes 'file2'. CTRL+C sends interrupt signal, CTRL+B moves cursor back one character, CTRL+D sends end-of-transmission or logout.