- Xubuntu 13.10
Say I paste a command, something like
sudo apt-get install abc yxz 123 DEF MMM KKK
into the terminal. Then I suddenly had a change in mind and thus I would like to delete the last 3 packages without using backspace. Is there a way to mark them, as in using something like ctrl + shift + left?
Best Answer
Assuming you are using the "usual" bash with emacs bindings, using Ctrlw should work.
To delete three words either press Ctrlw three times or preceed it with Alt3 or ESC3.
For more shortcuts have a look at this list.