Command Prompt

Below are the keyboard shortcuts for the Windows command prompt.  These shortcuts can help make the command line more powerful and easier to use. 

Although, personally I will admit some of these features seem a little useless or redundant.

Key StrokesDescription
F1 Repeats the last characters typed from the previous command (press multiple times)
F2 Copy up to a specific character
F3 Recall the last command issued 
F4 Delete up to a specific character
F5 Moves backwards through the history file
F6 EOF Marker (^Z or Ctrl-Z)
F7 Displays the history of all previous commands entered
F8 Cycles backwards through the command history, beginning with most recent.  Type the first letters of the commands you want to search for, then press F8 to cycle through the previous commands.
F9 Allows you to enter a command number to run (see F7)
Tab
Auto-completes a path or file names.
Home Start of the line 
End End of the line 
Ctrl + C
Cancels the execution of the current command or batch script
Ctrl + Left Arrow Move back one word
Ctrl + Right Arrow  Move forward one word
Insert Toggle between insert and over-strike mode 
Esc Delete current line 
Up Arrow Cycles through the previously executed command lines.
Down Arrow Cycles through the previously executed command lines.
Left mouse button Holding down the left mouse button, mark the text you want to copy in the command prompt window.  Right click to copy the marked text to the clipboard. 
Right mouse button To paste the contents of the clipboard to the command prompt just right click again.

More Keyboard Shortcuts

Comments