Knowing these commands and strategies offers you a leg up on the competition when you need to use Windows Command Prompt (many of the Run commands work in Command Prompt as well). Furthermore, if you learn the appropriate keyboard shortcuts, you will discover that you can execute tasks with relative ease.
While in the ‘cmd’ window, we’ll speak about the activities associated with the Function keys (F1 through F9) today. They’re mostly used to manage command history. Let’s have a good time!
To Repeat Previous Commands, Press F1.
When you hit this key, the preceding command’s characters are repeated one by one. Let’s pretend your prior command was Guiding Tech. Pressing F1 once will produce the letter t, twice will produce the letter ti, three times will produce the letter tit, and so on.
To Copy a Part Of a Previous Command, Press F2.
The F2 key can be used to replicate a section of a previous command, starting at the beginning and ending at a given letter. For example, the most recent command I ran was title Guiding Tech, followed by F2 and the letter g. As a consequence, the title Guidin appeared at the cursor’s present location.
Note: that the letter you type will be interpreted case-sensitively. If that letter appears more than once, the first occurrence will take precedence.
F3 Can Be Used In The Same Manner As The up Arrow Key.
It’s the same as pushing the up arrow key on your keyboard (only once). Simply retrieves the most recently run command.
To Remove Certain Letters, Press F4
Have you ever desired to get rid of a group of characters from a command you’ve already typed? Simply hit F4 and you’ll see how simple it is. You can type a letter up until the point where you wish to remove based on the position of the cursor.
To Get The Last Command, Press F5.
F5 may be used to browse over the previous commands one by one, whereas F3 pulls out the last command (i.e. only the final command no matter how many times you hit that key). As a result, it’s the same as pushing the up arrow key (each time you press it, you will be scrolled one command down the cycle). It will, however, continue until you reach the first command and will not return to the final command.
To Put Z, Press F6.
The Z sequence is loaded into the board. Now, I’m not sure what command-action is associated with it. If you are aware, please let us know.
To View a List Of Command History, Press F7.
When you press F7, a list of your command history appears. Then, using the up/down arrow keys, scan the objects. That command will be performed when you press Enter on the highlighted one. Keep in mind that it will not only be hauled out, but also executed.
To See An Infinite List Of Your Command History, Press F8.
It’s similar to F5, except it cycles and circulates the history indefinitely, so the last command will show after the first.
To Get a Specific Command, Press F9.
This is used to add a certain command number from the past to the current line. Starting with the first (command number 0), press F9 and then a number to display that command. F7 can be used to refer to the command number. And, unlike F7, it will wait until you press Enter before executing the instruction.
It’s certainly preferable than randomly searching the history for a command using the up arrow key or F5/F8. It’s worth noting that an incorrect number will display the last command executed.
Some of these may be accomplished only by using the arrow keys. There may also be alternative key combinations for the rest. However, if you remember these key-command combinations and begin practicing while on cmd, you may discover that using Function keys instead of arrows is much simpler. Please let us know if you have any further Command Prompt techniques under your sleeve.