Hotkeys in cmd.exe console

    I recently found out one thing that just shocked me. After many years of constant use of the console, I could not even think that it was still able to surprise someone.

    It would seem that everything has long been known:
    • Enter the command - you get the result.
    • The history of commands can be scrolled up / down.
    • The Tab key cyclically inserts file names from the current directory, or supplements them by the entered letters.
    What else can this primitive black window ?

    But it turns out, in addition to the arrows, he has a few more useful hot keys. And most interestingly, some of them display dialog boxes . This was a real surprise.

    image

    And so, in order:
    • Pressing the F7 key displays a dialog with a numbered history of the entered commands.
    • Pressing F8, after entering one or more letters, allows you to cycle through the history commands starting with the letters entered.
    • F9, in the history window or on its own, displays a dialog asking for the command number from the history, and inserts the corresponding command into the console.
    • AltF7 clears the command history.
    The F1-F5 keys also perform certain actions.

    When we press the up / down arrows, we not only select one of the previously entered commands, but also move the cursor in this story. Pressing F3 inserts the currently selected command into the console. And entering and executing a new command moves the cursor to the end of the story.

    F1 - one letter per press prints the command selected in the history.
    F5 - duplicates F3.

    The purpose of the F2 and F4 keys remains a mystery to me, although it is clearly asking for something there.
    Comrade SeLarin suggested :
    F4 - removes part of the command line from the current cursor position to the specified character.
    F2 - copies to the buffer part of the command line from the current cursor position to the specified character.

    Also popular now: