deleting word by word at linux command prompt

linux

Solution

Ctrl + w will delete the last word backwards from the cursor.

Problem

I want to delete word by word when at linux prompt. ``` For ex : [user@system]$ python myscript.py -s some_test_case -u some_other_flag ``` I'm running this command whole day with varying text after "-u", it's tedious to delete the text by using a backspace everytime. I searched for the linux commands as per my requirement but I find commands to either cancel out the whole command or replace last 2 characters or some other command irrelevant to me. Is there a command for this at all?

Original source