Bash clearing lines

From Hidden In Plain Sight
Jump to: navigation, search
Ctrl-U - Delete everything before the cursor
Ctrl-K - Delete everything after the cursor
Ctrl-Y - Paste what you deleted
Escape, Backspace - Delete word before cursor
Escape, # - prepend a # and execute the comment
Ctrl-C - Abort the command (will kill the current prompt and start a new one)