The editing commands of the built-in version are given below. The gnu readline and BSD libedit libraries have their own documentation.
Command-line Editing Commands | |
Character | Function |
Line Editing | |
^B |
move back a single character. |
^F |
move forward a single character. |
^A |
move to the beginning of the line. |
^E |
move to the end of the line. |
^H, DEL |
delete the previous character. |
^D |
delete the current character. |
^K |
delete from current position to the end of line. |
^L, ^R |
redraw line in case it gets trashed. |
^U |
delete the entire line. |
^W |
delete from the current word to the end of line. |
History | |
^P |
move back through history. |
^N |
move forward through history. |