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.
M
means "Meta". In general,X-y
means "press theX
key withy
" as in "C-c
is Control withc
". Meta is generally the Escape or Alt keys. – Kusalananda Aug 09 '18 at 12:52readline
notbash
– ychaouche Aug 25 '22 at 11:29