Saturday, 20 October 2012

how to become a cmd ninja

F1 to Repeat Previous Commands

Whenever you press this key it repeats the previous command’s characters one by one. Say for example, your previous command was title Rexofcyber. Pressing F1 once will write r, twice will write re...

F2 to Copy Part of Previous Command

The F2 key can be used to copy a part of the previous command, from the beginning to a specific letter. For instance, the last command that I executed was title Guiding Tech and then I hit F2 followed by the letter g. As a result title rexofcyber got populate on the current cursor position.

Note: The letter that you key in is interpreted in a case sensitive manner. And if the occurrence of that letter is more than once, the first occurrence will take effect.

F3 Can Be Used Like Up Arrow Key

It is equivalent to pressing the up arrow key (only once). Simply pulls out the last command that has been executed.

F4 to Remove Certain Letters

Have you ever wanted to remove a set of contiguous letters from some command that you have already typed? Just press F4 and you will see how easy that becomes. Based on the position of the cursor, you can key in a letter up till where you want to delete.

F5 to Get the Last Command

While F3 pulls out the last command (viz. only the last command no matter how many times you press that key) F5 can be used to scroll the previous commands one by one. So, it is equivalent to pressing the up arrow key (each time you press it, you will be scrolled one command down the cycle). However, it will go on till you reach the first command and will not circulate back to the last command.

F6 to Put ^Z

It places the ^Z sequence on board. Now, I am not really sure about what command-action is mapped to that. Tell us, if you are aware.

F7 to View a List of Command History

As soon as you hit F7 a list of your command history will appear. Then you can scan the items using the up/down arrow keys. When you hit Enter on the highlighted one that command will be executed. Remember, it will not just be pulled out, but executed.


F9 to get specific commandIt is obviously better than hitting the up arrow key or F5/F8 blindly looking for a command from the history. Note that an invalid number will show the last executed command.

No comments:

Post a Comment