Note: Ctrl-U and Ctrl-W are not from Emacs. They are instead from the same group as Ctrl-C for interrupt, Ctrl-D for End-of-File, etc; i.e. traditional Unix TTY driver keys. Run “stty -a” to see them all; the stty command can also be used to change them.
C-u kills from cursor to start of line.
C-w kills from cursor to start of previous word. M-d is its friendly forward sibling.
I never noticed C-u was from cursor. I tend to use it mostly from the end of the line.
I guess lots of people leave C-a as the default escape key for screen.
Continue this thread — 2 replies