May 022009
 

If you are a heavy user of the Command prompt (DOS window) in Windows then you would sure agree with me that it is not so very user friendly. But, there are bunch of Fn keys that you can use to make your life easy when working on the Command Prompt.


F7 key – Popup window with a list of previous commands

Brings up a popup window with a list of commands typed in the current session. Numbers the commands from “0″

dos-f7
F9 key – Prompts for command number from recent command list

You saw with F7, it pops up with a list of commands number from “0″. F9 popsup with a message box prompting for the command number. For instance, if I enter 6 here, it will enter the command “whoami”

F8 key – same as the UP arrow function

Brings up previous commands in Descening order from the most recent to the oldest. This is similar to the UP Arrow

F3 & F5 key – Type the last command

This is similar to using the UP arrow to get to the last typed in command

F2 key – Type the previous command upto a specified character

This key prompts to enter the character upto which to copy from the previous command. For instance, if I enter “l”, it will delete anything from the letter “l” (“l” inclusive) in my last command. Can be handy if you have to copy a part of a long command.

F1 – Type last command one letter at a time. So, keep pressing F1 as many times until the letter you want the previous command be typed in.

F6 – Types CTRL+Z

Incoming search terms:

  3 Responses to “Useful Fn key shortcuts in Windows Command Prompt”

  1. cool!!

  2. I hit f9 by mistake and saw the prompt. It is nice to know that feature is there and that f7 was the missing part. Thanks for the article!

  3. The f8 key actually does a search.
    You are in doskey at this point and doskey does a huge lot of things that none of us touch typists wanted to (mess) with.
    Like MACROs.
    (my boss used to use MACROs before he became all windowy wimpish.)

    Any case.
    Type dir c:\windows
    type cls
    type cls
    type di and hit f8
    Returns dir c:\windows
    Searches for the nearest match.

    You can also use the f4 key to search in a command (one line) but that is a pain and no one ever used that (even I stopped.)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>