Share via

cmd keyboard shortcuts

Anonymous
2012-06-27T14:29:27+00:00

Where is the manual for

keyboard shortcuts

for the cmd

command-line

program?

I know a couple but would like to learn them all.

Here are the ones I know:

F1 display char 1 to the right

F2 display chars to the right up to CHAR typed in -1 char, or to CHAR if string is displayed.

F3 move to end of line

F4 delete to the right up to CHAR typed in -1 char.  Must have the string displayed. (ie: F3 then move left)

F5 help

F6 ^Z (Ctrl-Z) End of file.  Used to use with EDLIN to end a file

F7 history of commands typed in.  If you type a char after the list comes up the selection will go to that item.

F8 Previouse line in history

F9 run # from history (F7)

F10 ???

F11 ???

F12 ???

RightArrow move to right and display chars from previouse line run

LeftArrow move to the left to allow editing of chars to the left after using (F3, RightArrow, etc...)

Up/Down Arrow - move to previous/next command in the history (F7).  When you run a command the place in the history list is saved and down will go

    to the next command and not start back at the bottom of the history list.  ie: history has 1, 2, 3, 4, 5 and you are on 5.  up 3 takes you to 3 and then down will take you to 4

PageUp/PgUp - Takes you to 1st command in history

PageDown/PgDn - Takes you to last command in history

Ins, Insert - Toggle inser/overwrite mode while editing a command line

BS - Delete previouse char on line you are editing

Del/Delete - delete the char under cursor

HOME move cursor to Beggining of line

END move cursor to end of line

ESC cancel edit or display of line

TAB/Shift-TAB - Cycle back/forward thourgh some history of filenames, URL, etc, ???

Alt-PrtScn - Capture just the cmd window in to the paste buffer

Ctrl-Break - Clear type ahead buffer and send a Ctrl-C

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. LemP 74,925 Reputation points Volunteer Moderator
    2012-06-27T16:17:21+00:00

    I believe there are no command shell commands associated with the F10, F11, and F12 keys.

    You have many of the shortcuts wrong.

    F1:  repeats the previous command one character at a time.  Thus, if you entered

               dir c:\temp

           and on the next command line pressed F1 F1 F1 F1 F1 you would see

               dir c

    F2:  Displays a dialog asking user to "enter the char to copy up to" of the last command line.  Using the previous example, if you pressed F2 and entered m you would get

               dir c:\te

    F3:  repeats the previous command

    F5:  repeats the previous commands.  Each time you press F5, you go back (up) to a previous command

    F7:  shows the list of previous commands; selection can be made either by typing the first character of a command (if more than one has the same first character, pressing the character repeatedly scrolls through them) or by using the up/down arrows.

    F8:  similar to F3, but if you type characters before you press F8, scrolls backward through previous commands that match the typed characters.

    See http://www.mydigitallife.info/comprehensive-list-of-command-prompt-keyboard-accelerators-shortcut-keys/

    0 comments No comments

0 additional answers

Sort by: Most helpful