Fundamentally, Command Prompt relies on the use of MS-DOS commands, the first operating system developed by Microsoft and the foundation for subsequent Windows generations. Command Prompt, also known as CMD, remains a valuable tool for those who want to delve deeper into Windows. Even on Windows 10, CMD is retained. If you're using Windows 10, you can learn how to open CMD on Windows 10 with Administrator rights here.
Common Shortcut Keys in Command Prompt
Open, close Command Prompt:
- Windows + X, press C: Open Command Prompt in normal mode (Windows 10).
- Windows + X, press A: Open Command Prompt in Admin mode (Windows 10).
Shortcut keys for text manipulation:
- Ctrl + Backspace: Delete the word to the left of the cursor.
- Tab: Automatically complete folder names.
- Escape: Clear the current line.
- Ctrl+ C (Ctrl + Insert): Copy selected text.
- F2 + type a letter: Copy text to the right of the cursor to the letter you type.
- Ctrl + V (Shift + Insert): Paste text from the Clipboard.
- Backspace: Delete the character to the left of the cursor.
- Insert: Toggle insert mode, allowing you to type anything to insert at the current cursor position.
- Ctrl + Home/End: Delete text from the insert point at the beginning or end of the current line.
- Ctrl + Z: Mark the end of a line.
Shortcut keys for movement:
- Home/End: Move the cursor to the beginning/end of the current line.
- Ctrl + left/right arrow: Move the cursor to the previous/next word in the current line.
- Ctrl + up/down arrow: Scroll up or down without moving the cursor.
- Ctrl + M: Enter or exit marking mode. In marking mode, you can use the four arrow keys to move the cursor around the window.
Shortcut keys for text selection:
- Shift + End: Expand the current selection to the end of the line.
- Ctrl + A: Select all text on the current line. Press again to select all text in the CMD buffer.
Shortcut keys for Command history:
- Alt + F7: Clear command history.
- F3: Repeat the previous command.
- Up/Down arrows: Navigate through used commands in history.
- F7: Display the history of previous commands. Use the Up/Down arrows to select a command, then press
- Enter to execute it.
- F8: Move backward in command history to match with current commands.
- Ctrl + C: Cancel the current input line or executing command.
Here are some basic commands and common shortcuts in Command Prompt. Hopefully, they will assist you in navigating CMD and exploring more from CMD in Windows. For those using Windows 8 or 7, you can refer to the following CMD commands. These CMD commands will provide you with a better understanding of CMD Command Prompt through easily understandable examples.