You can back up in a command you are typing to correct a mistake. To edit a command, use the left and right arrow keys to move around and the Backspace key to delete characters. You can enter commands that span more than one line.
You can use these keystroke combinations:
Keystroke combination |
Meaning |
---|---|
Alt D |
Delete next word (to the right of the cursor). |
Alt F |
Go to the next word (to the right of the cursor). |
Ctrl Alt H |
Delete the previous word (to the left of the cursor). |
Ctrl Shift - |
Repeat the previous word (from the left of the cursor). |
Ctrl A |
Move to the beginning of the line. |
Ctrl B |
Move to the previous character (to the right of the cursor). |
Ctrl E |
Move to the end of the line. |
Ctrl F |
Move to the next character (to the right of the cursor). |
Ctrl H |
Delete the previous character (to the left of the cursor). |
Ctrl L |
Clear the screen and show the current line at the top of the screen. |
Ctrl N |
Next history item. |
Ctrl P |
Previous history item. |
Ctrl R |
Redisplay the current line. |
Ctrl U |
Delete the current line. |