• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Editing Command Lines

Editing Command Lines

Rather than simply rerunning a previously typed command, you might need to run the command again with slightly different switches or parameters. Rather than retyping the whole thing, DOSKEY enables you to edit any recalled command line. You use various keys to move the cursor to the offending letters and replace them. Table B.3 summarizes DOSKEY’s command-line editing keys.

Table B.3. DOSKEY Command-Line Editing Keys
PressTo
Left ArrowMove the cursor one character to the left.
Right ArrowMove the cursor one character to the right.
Ctrl+Left ArrowMove the cursor one word to the left.
Ctrl+Right ArrowMove the cursor one word to the right.
HomeMove the cursor to the beginning of the line.
EndMove the cursor to the end of the line.
DeleteDelete the character over the cursor.
BackspaceDelete the character to the left of the cursor.
Ctrl+HomeDelete from the cursor to the beginning of the line.
Ctrl+EndDelete from the cursor to the end of the line.
InsertToggle DOSKEY between Insert mode (your typing is inserted between existing letters on the command line) and Overstrike mode (your typing replaces existing letters on the command line).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint