Delete one word backward:
Ctrl + w
Delete one word forward:
?
Can anyone answer the above or do I need to add a command to stty as I can see by running the following command:
stty -a
that the action associated with Ctrl + w is defined there.
Mmeans "Meta". In general,X-ymeans "press theXkey withy" as in "C-cis Control withc". Meta is generally the Escape or Alt keys. – Kusalananda Aug 09 '18 at 12:52readlinenotbash– ychaouche Aug 25 '22 at 11:29