Typewriting in long commands and file paths gets tedious pretty quickly. Here are some shortcuts which will make the long and complicated commands more simpler to handle.
Image remixed from an artless by xkcd.
Power users love the command line for its ability to perform difficult tasks with simply some keystrokes. except for beginners who do not know the shortcuts and kind everything out longhand, it will look like it takes forever (I grasp this as a result of i am simply past beginner myself, and that i still did not grasp most of those shortcuts).
These commands are applied primarily to *NIX-based command lines, which, out of the box, are running on systems like OS X and Linux. To use them on Windows,you can install Cygwin.
Windows (or Windows+R) and then type “cmd”: Run the Command Prompt in normal mode.
Win+X and then press C: Run the Command Prompt in normal mode. (New in Windows 10)
Win+X and then press A: Run the Command Prompt with administrative privileges. (New in Windows 10)
Alt+F4 (or type “exit” at the prompt): Close the Command Prompt.
Alt+Enter: Toggle between full-screen and windowed mode.
Home/End: Move the insertion point to the beginning or end of the current line (respectively).
Ctrl+Left/Right Arrow: Move the insertion point to the beginning of the previous or next word (respectively) on the current line.
Ctrl+Up/Down Arrow: Scroll the page up or down without moving the insertion point.
Ctrl+M: Enter or exit Mark Mode.
Ctrl+A: Selects all text.
Shift+Left Arrow/Right Arrow: Extend current selection by one character to the left or right.
Shift+Ctrl+Left Arrow/Right Arrow: Extend current selection by one word to the left or right.
Shift+Arrow Up/Arrow Down: Extend current selection by one line up or down. The selection extends to the same position in the previous or next line as the position of the insertion point in the current line.
Shift+Home: Extend current selection to the beginning of a command. Press Shift+Home again to include the path (e.g., C:\Windows\system32) in the selection.
Shift+End: Extend current selection to the end of the current line.
Ctrl+Shift+Home/End: Extent current selection to the beginning or end of the screen buffer (respectively).
Shift+Page Up/Page Down: Extend current selection by one page up or down.
More useful shortcuts:
|Ctrl+C||Copy the selected text|
|Ctrl+V||Paste the selected text|
|Ctrl+M||Enter Mark mode|
|Alt+selection key||Begin selection in block mode|
|Arrow keys||Move the cursor in the direction specified|
|Page up||Move the cursor by one page up|
|Page down||Move the cursor by one page down|
|Ctrl+Home||Move the cursor to the beginning of the buffer|
|Ctrl+End||Move the cursor to the end of the buffer|
|Ctrl+Up arrow||Move up one line in the output history|
|Ctrl+Down arrow||Move down one line in the output history|
|Ctrl+Home||If the command line is empty, move the viewport to the top of the buffer. Otherwise, delete all the characters to the left of the cursor in the command line. (History navigation)|
|Ctrl+End||If the command line is empty, move the viewport to the command line. Otherwise, delete all the characters to the right of the cursor in the command line. (History navigation)|
Also, check related Tips and Tricks here.