Keyboard shortcuts can save you a lot of time, and they can reduce the chance of repetitive strain injuries (RSIs) like carpal tunnel syndrome. So let’s check out the best keyboard shortcuts for the Windows Command Prompt.
Keyboard Shortcuts for the Command Prompt Console
These are shortcuts that help you control the actual window that you’ll use for your command line dialog.
- جیت + X تو C: Opens the Command Prompt app. It may not work in Windows 11 if it’s defaulted to ونڈوز ٹرمینل. آپ بھی استعمال کر سکتے ہیں جیت + R, پھر ٹائپ کریں سییمڈی اور پریس درج.
- جیت + C تو A: Opens the Command Prompt app with administrator rights. This requires administrator credentials, of course. It may not work in Windows 11 if it’s defaulted to Windows Terminal, then that keyboard combo will open Windows Terminal with administrator rights.
- F11 or آلٹ + درج کریں: Use to switch Command Prompt between full screen and windowed mode.
- کے لئے Ctrl + منتقل + پلس (+) اور کے لئے Ctrl + منتقل + مائنس (-): Increase or decrease the opacity of the Command Prompt. کے لئے Ctrl + منتقل + ماؤس سکرول وہیل ایک ہی کام کرتا ہے.
- جیت + تیر کی چابیاں: Maximize, minimize, and move the Command Prompt around the screen.
- آلٹ + Mouse Scroll Wheel: Zooms in and out on the Command Prompt, making the text larger or smaller.
- آلٹ + F4: Quickly closes the کمانڈ پرامپٹ.
Keyboard Shortcuts for Cursor and Text Control in the Command Prompt
The keyboard shortcuts to select or manipulate text and move the cursor around without a mouse are much the same as the text کی بورڈ شارٹ کٹ in other Windows 10 or 11 apps, like ایکسل یا لفظ.
- کے لئے Ctrl + M: Switches the cursor to Mark Mode, which lets you select text with the mouse. To exit Mark Mode, press ESC. To tell if you’re in Mark Mode or not, look at the title bar of the Command Prompt window and the cursor. If it says Mark in the title or the cursor is a solid upright rectangle, you’re in Mark Mode.
- ہوم پیج (-) or اختتام: Home moves the cursor to the start of the command line while End moves it to the end.
- منتقل + ہوم پیج (-) or منتقل + اختتام: شفٹ + ہوم پیج (-) selects all text from where the cursor is to the beginning of the command line. If the cursor is already at the beginning, it will select the prompt itself. منتقل + اختتام selects all text from the cursor to the end.
- منتقل + دائیں تیر or بائیں تیر: Increase the current selection by a character to the right or left.
- کے لئے Ctrl + منتقل + دائیں تیر or بائیں تیر: یہاں کے لئے Ctrl + منتقل key combo with the right and left arrow keys will select the entire word to the right or left of the cursor.
- Up or نیچے یرو: In Mark Mode, the up arrow moves the cursor up, and the down arrow moves it down a line per press. When not in Mark Mode, it cycles through recently entered commands.
- کے لئے Ctrl + Up or نیچے یرو: Moves the page up or down one line at a time. This is useful to scroll through a large amount of text slowly.
- پی جی اپ or PgDown: When in Mark Mode, the پیج اپ اور نیچے صفحہ keys will move the cursor a page at a time in their respective directions.
- منتقل + پی جی اپ or صفحہ Dn: Select text from the cursor to include a whole page up or down.
- کے لئے Ctrl + A: The first press selects all text in the current line. An immediate second press selects all text in the command prompt window.
- کے لئے Ctrl + C or کے لئے Ctrl + داخل کریں: Both will copy the text currently selected. If you use کے لئے Ctrl + C and no text is selected, it will interrupt a running command if there is one.
- کے لئے Ctrl + بیک اسپیس: Just as backspace deletes the character to the left of the cursor, Ctrl + بیک اسپیس deletes the entire word to the left of the cursor.
- کے لئے Ctrl + ہوم پیج (-) or کے لئے Ctrl + اختتام: Deletes all text from the cursor to the start or end of the current line, respectively.
- کے لئے Ctrl + منتقل + ہوم پیج (-) or کے لئے Ctrl + منتقل + اختتام: Selects all text from the cursor to the top or bottom of the Command Prompt. In the image below, the cursor was at the start of the ipconfig /allcompartments, اور پھر کے لئے Ctrl + منتقل + اختتام was pressed, selecting everything to the end of the window.
- esc: Deletes the entire line or escapes Mark Mode if you’re in it.
- داخل کریں: Changes between insert modes to either insert text or overwrite the text.
- کے لئے Ctrl + F: کھولتا ہے مل dialog to help search through text. You can change the parameters to match the case and search up or down through the command prompt.
Keyboard Shortcuts to Use with Commands
Typing every character or repeatedly typing the same commands is a huge time drain. Fortunately, Microsoft includes many Command Prompt keyboard shortcuts to help enter commands quickly.
- Up or Down Arrows: اوپر (^) moves you back through the previous commands in the command history, and down (˅) moves you forward.
- دائیں تیر: Enters the most recent command letter by letter. If ڈرائیورکیری was the last command executed, pressing the right arrow types d, pressing again types r، وغیرہ
- F2: Copies text up to the first instance of the character typed when the کاپی کرنے کے لیے چار درج کریں: dialog is open, in the last command executed. For example, if the last command used was ipconfig / all, you enter F2 اور ٹائپ کریں /, ipconfig will appear at the command prompt.
- F3: Recalls the last command from the command history.
- F4: Deletes text up to the first instance of the character typed when the Enter char to delete up to: ڈائیلاگ کھلتا ہے۔
- F5: Works similarly to the up arrow, only going backward in the command history, one command at a time.
- F7: Opens the command history, and you can use the up and down arrows to move through the list. Then press درج to execute the command that’s highlighted.
- آلٹ + F7: Clears the command history. Use آلٹ + F7 and then try just F7، and the command history doesn’t even open because there’s nothing in it.
- F8: Recalls commands from the command history which begin with the text already entered. In this example, F8 would scroll back through any previous ipconfig commands used.
- F9: Re-types a command from the command history based on its number, as shown when using F7. In the example shown above for F7, you’d press F9 کھولنے کے لئے Enter command number: dialog and then type 17 داخل ہونا diskpart.
- ٹیب: Cycles through folders under the directory in the current command to autocomplete it with the one you stop on. In the example below, C: was typed in, then ٹیب was pressed once, giving us C:$Recycle.Bin.
- کے لئے Ctrl + V or منتقل + داخل کریں: Pastes last text copied to the clipboard. In the image below, you can see that it’ll be ipconfig / all سے تختہ تراشہ history window.
You’re in Command of the Windows Command Prompt Now
Maybe you’ve used some command-line features in the past, and you’re handy with the proper syntax. Perhaps you’ve even written some batch files. Now you’ve got the shortcuts to look like a wizard. Not a Microsoft operating system person?
That’s alright—we’ve got Mac shortcuts اور بھی Linux keyboard shortcuts. We even show you how to create keyboard shortcuts for Microsoft Office اور ونڈوز. What are your favorite shortcut key combos?