The Windows Command Prompt (CMD) is a powerful tool for executing commands, automating tasks, and troubleshooting system issues. To enhance efficiency, Windows provides keyboard shortcuts that allow users to navigate, edit, and interact with the Command Prompt faster.
Below is a detailed guide on CMD shortcuts for copying, pasting, navigating, and managing command-line inputs.
🔹 Copying and Pasting in CMD
Shortcut | Action |
---|---|
Ctrl + C / Ctrl + Insert | Copy the selected text. |
Ctrl + V / Shift + Insert | Paste the copied text. |
🔹 Tip: Unlike older versions, Windows 10 and later support direct pasting into CMD using Ctrl + V.
🔹 Text Selection and Mark Mode
Shortcut | Action |
---|---|
Ctrl + M | Enter Mark Mode (enables text selection). |
Alt + Selection Key | Begin Block Mode selection (select a rectangular block of text). |
🔹 Cursor Navigation Shortcuts
Shortcut | Action |
---|---|
Arrow Keys | Move the cursor in the specified direction. |
Page Up | Move the cursor one page up. |
Page Down | Move the cursor one page down. |
🔹 Scrolling and History Navigation
Shortcut | Action |
---|---|
Ctrl + Up Arrow | Scroll one line up in output history. |
Ctrl + Down Arrow | Scroll one line down in output history. |
🔹 Buffer and Viewport Navigation (Mark Mode Required)
Shortcut | Action |
---|---|
Ctrl + Home (Mark Mode) | Move cursor to the beginning of the buffer. |
Ctrl + End (Mark Mode) | Move cursor to the end of the buffer. |
🔹 Command Line Editing and Viewport Navigation
Shortcut | Action |
---|---|
Ctrl + Home (History Navigation) | If the command line is empty, move the viewport to the top of the buffer. If not, delete all characters to the left of the cursor. |
Ctrl + End (History Navigation) | If the command line is empty, move the viewport to the bottom of the buffer. If not, delete all characters to the right of the cursor. |
🔹 Why Use Command Prompt Shortcuts?
✔ Faster command execution – No need to manually scroll or click.
✔ Efficient text editing – Edit, copy, and paste commands quickly.
✔ Seamless history navigation – Scroll through previous outputs easily.
✔ Improved accessibility – Perform complex tasks with minimal effort.
💡 Pro Tip: Use Ctrl + C to cancel an ongoing process and return to the command line instantly. 🚀
Master these Command Prompt shortcuts to boost productivity and streamline command-line operations!