When writing a command on the bash command line, I can use CTRL+w to delete a word backwards, or ALT+d to delete word forwards.
The problem is, that these two shortcuts are not exactly complementary: CTRL+w deletes everything up to a space, whereas ALT+d deletes only up to any non-alphabetic character (i.e. stops at
Is there a shortcut that acts as ALT+d, but backwards?
So that when I am at the end of
/etc/hostname and press shortcut, I end up with