3 ms·
Ctrl-D exits the shell IFF it is entered at an otherwise empty command prompt. When editing a command line, it deletes the character under eh cursor. When rea
by PeterWhittaker 3y ago
Ctrl-D exits the shell IFF it is entered at an otherwise empty command prompt.
When editing a command line, it deletes the character under eh cursor.
When reading from stdin, e.g., if one executes cat with no arguments and not in a pipeline, it acts as EOF and ends the read. Interestingly enough, if entered after text without a newline, it ends that segment of input; entering it again ends the read.
Ctrl-u and Ctrl-k delete from the cursor to the start and end of line respectfully; ctrl-w deletes from the cursor to the start of the current word.
Alt-b and Alt-f move backward and forward one word. Very handy.