我们敢打赌,即使不是所有的高级用户和极客都喜欢使用命令提示符(Command Prompt)。每当您想以基于文本的形式发出命令时,它都是一站式的选择,它也是发出管理命令的最佳方式之一。好消息是,在Windows 10中,命令提示符(Command Prompt)支持的键盘快捷键比旧版本的Windows中更多。事不宜迟,请继续阅读,因为在本文中,我们将向您展示命令提示符(Command Prompt)的最佳键盘快捷键:
注意:(NOTE:)如果您想在计算机上保存并保留命令提示符(Command Prompt)的下一个键盘快捷键,您可以下载我们为您创建的“命令提示符快捷键 PDF”文件。("Command Prompt shortcut keys PDF")下载链接在本文末尾。
(Keyboard)命令提示符的(Command Prompt)键盘快捷键-在Windows 10中管理CMD
以下是一些可用于管理和调整命令提示符(Command Prompt)窗口在 Windows 10 中的外观的键盘快捷键:
Alt + Enter或F11 - 将命令提示符(Command Prompt)窗口切换到全屏模式。
Alt + F4 - 关闭命令提示符(Command Prompt)。
Ctrl + Shift + Plus (+)或Ctrl + Shift + mouse wheel up- 增加命令提示符(Command Prompt)窗口的透明度。
Ctrl + Shift + Minus (-)或Ctrl + Shift + mouse wheel down- 降低命令提示符(Command Prompt)窗口的透明度。
(Command Prompt)用于复制和粘贴的命令提示符键盘快捷键
与以前的版本不同,Windows 10 的命令提示符(Windows 10)支持(Command Prompt)常用的复制和粘贴(copy and paste)键盘快捷键:
Ctrl + C或Ctrl + Ins - 复制选定的文本并将其放在剪贴板中。
Ctrl + V或Shift + Ins - 粘贴剪贴板内容。
(Keyboard)在CMD(CMD)中选择文本的键盘快捷键
在 Windows 10 中,命令提示符(Command Prompt)还支持许多文本选择键盘快捷键。他们来了:
Ctrl + A - 从活动的命令提示符(Command Prompt)窗口中选择所有文本。
Shift + Left Arrow- 将文本选择向左扩大或缩小一个字符。
Shift + Right Arrow- 将文本选择向右扩大或缩小一个字符。
Ctrl + Shift + Left Arrow- 将文本选择向左扩大或缩小一个单词。
Ctrl + Shift + Right Arrow- 将文本选择向右扩展或缩小一个单词。
Shift + Up Arrow- 将文本选择向上扩展或缩小一行。
Shift + Down Arrow- 将文本选择向下扩展或缩小一行。
Shift + Home - 将文本选择扩大或缩小到当前命令的开头。在第二次击键时,它将文本选择扩大或缩小到行首。
Shift + End - 将文本选择扩展或缩小到当前命令的末尾。在第二次击键时,它将文本选择扩大或缩小到行尾。
Ctrl + Shift + Home - 将文本选择扩展到命令提示符(Command Prompt)窗口的开头。
Ctrl + Shift + End - 将文本选择扩展到命令提示符(Command Prompt)窗口的末尾。
Shift + Page Up - 将文本选择扩大或缩小一页。
Shift + Page Down - 将文本选择向下扩展或缩小一页。
使用Windows 命令提示符(Windows Command Prompt)的键盘快捷键跳过文本
在本文的前一部分中,我们向您展示了一些用于选择文本的键盘快捷键。现在是时候看看如何快速浏览文本了:
Home - 将光标移动到命令的开头。
End - 将光标移动到行尾。
Ctrl + Left Arrow- 将光标移动到上一个单词。
Ctrl + Right Arrow- 将光标移动到下一个单词。
Ctrl + Up Arrow- 向上滚动命令提示符(Command Prompt)窗口。
Ctrl + Down Arrow- 向下滚动命令提示符(Command Prompt)窗口。
(Manage)使用命令提示符(Command Prompt)的键盘快捷键管理文本
有时,了解如何管理文本很有用。我们的意思是快速查找文本位、自动完成命令或删除整个文本部分:
Ctrl + F - 打开“查找”对话框,您可以使用该对话框在“(Find)命令提示符(Command Prompt)”窗口中输入和搜索文本。如果找到您搜索的文本,则会自动选择它。
选项卡(Tab)- 自动完成文件夹名称。您可以反复按以循环浏览当前路径中所有匹配的文件夹名称。
Ctrl + End - 删除从当前光标位置到行尾的所有文本。
Ctrl + Home - 删除从当前光标位置到行首的所有文本。
如何在命令提示符中启用扩展键盘快捷键(Command Prompt)
在某些情况下,您的 Windows 10 计算机可能配置为不使用命令提示符(Command Prompt)的扩展键盘快捷键(extended keyboard shortcuts)。换句话说,本指南中的某些键盘快捷键默认情况下可能不起作用。如果您或管理您的Windows 10计算机的人禁用了它们,或者您使用的是非常旧的Windows 10版本,则可能会发生这种情况。要使所有cmd键盘快捷键正常工作,您应该执行以下几个设置:
启动(Launch )命令提示符(Command Prompt),然后打开其属性(Properties)窗口。为此,请右键单击或按住命令提示符的(Command Prompt's)窗口标题栏,然后在上下文菜单中选择属性。(Properties)
在“属性(Properties)”窗口中,切换到“选项(Options)”选项卡并确保名为“使用旧控制台(需要重新启动)”("Use legacy console (requires relaunch)")的选项已禁用(disabled)。
取消选中上述选项后,按OK并重新启动Command Prompt。您必须这样做,否则无法打开扩展键盘快捷键。重新启动命令提示符(Command Prompt)后,再次从“属性(Properties)”窗口转到“选项”选项卡。(Options)然后,选中“启用 Ctrl 快捷键”("Enable Ctrl key shortcuts")和“扩展文本选择键”("Extended text selection keys")选项。
注意:(NOTE:)如果您想在使用命令提示符(Command Prompt)时进一步提高工作效率,我们建议您还启用以下选项:“在粘贴时过滤剪贴板内容”("Filter clipboard contents on paste")和“启用换行选择”。("Enable line wrapping selection.")您可以在本指南中找到有关每个选项的作用的更多信息:如何在 Windows 10 中自定义命令提示符 (cmd)(How to customize the Command Prompt (cmd) in Windows 10)。
而且......(And…)就是这样 - 现在您应该能够使用我们在本文中向您展示的所有键盘快捷键。接下来,如果您想保留所有这些命令提示符(Command Prompt)键盘快捷键,请使用下面的链接以PDF格式下载它们。
下载:(Download:) 命令提示符快捷键 PDF(Command Prompt shortcut keys PDF)
你知道命令提示符(Command Prompt)的其他键盘快捷键吗?
如果您喜欢使用Command Prompt,几乎可以肯定您也更喜欢使用键盘而不是鼠标。这意味着Command Prompt的键盘快捷键越多越好。如果您知道其他此类快捷键,请随时在评论中与我们分享,我们承诺会尽快更新本文。
34 keyboard shortcuts for Windows 10's Command Prompt
Wе bet that most, if not all the power users and geeks out there love to use the Command Prompt. It's the one-stop go-to whenever you want to issue commands in a text-based form, and it's also one of the best ways to issue administrative commands. The good news is that, in Windows 10, the Command Prompt supports more keyboard shortcuts than in older versions of Windows. Without further ado, read on because, in this article, we're going to show you the best keyboard shortcuts for Command Prompt:
NOTE: If you want to save and keep the next keyboard shortcuts for Command Prompt on your computer, you can download the "Command Prompt shortcut keys PDF" file that we've created for you. The download link is found at the end of this article.
Keyboard shortcuts for Command Prompt - Managing CMD in Windows 10
Here are a few keyboard shortcuts that are useful for managing and adjusting what the Command Prompt window looks like in Windows 10:
Alt + Enter or F11 - Switches the Command Prompt window to fullscreen mode.
Alt + F4 - Closes the Command Prompt.
Ctrl + Shift + Plus (+) or Ctrl + Shift + mouse wheel up - Increases the transparency of the Command Prompt window.
Ctrl + Shift + Minus (-) or Ctrl + Shift + mouse wheel down - Decreases the transparency of the Command Prompt window.
Command Prompt keyboard shortcuts for copying and pasting
Unlike previous versions, the Command Prompt from Windows 10 supports the commonly used copy and paste keyboard shortcuts:
Ctrl + C or Ctrl + Ins - Copies the selected text and places it in the clipboard.
Ctrl + V or Shift + Ins - Pastes the clipboard contents.
Keyboard shortcuts for selecting text in CMD
In Windows 10, Command Prompt also supports many text selection keyboard shortcuts. Here they are:
Ctrl + A - Selects all the text from the active Command Prompt window.
Shift + Left Arrow - Expands or narrows the text selection by one character to the left.
Shift + Right Arrow - Expands or narrows the text selection by one character to the right.
Ctrl + Shift + Left Arrow - Expands or narrows the text selection by one word to the left.
Ctrl + Shift + Right Arrow - Expands or narrows the text selection by one word to the right.
Shift + Up Arrow - Expands or narrows the text selection by one line upwards.
Shift + Down Arrow - Expands or narrows the text selection by one line downwards.
Shift + Home - Expands or narrows the text selection to the beginning of the current command. On the second keystroke, it expands or narrows the text selection to the beginning of the line.
Shift + End - Expands or narrows the text selection to the end of the current command. On the second keystroke, it expands or narrows the text selection to the end of the line.
Ctrl + Shift + Home - Expands the text selection to the beginning of the Command Prompt window.
Ctrl + Shift + End - Expands the text selection to the end of the Command Prompt window.
Shift + Page Up - Expands or narrows the text selection by one page up.
Shift + Page Down - Expands or narrows the text selection by one page down.
Jumping through text with keyboard shortcuts for the Windows Command Prompt
In the previous section of this article, we've shown you some keyboard shortcuts useful for selecting text. Now it's time to see how you can quickly navigate text:
Home - Moves the cursor to the beginning of the command.
End - Moves the cursor to the end of the line.
Ctrl + Left Arrow - Moves the cursor to the previous word.
Ctrl + Right Arrow - Moves the cursor the next word.
Ctrl + Up Arrow - Scrolls the Command Prompt window upwards.
Ctrl + Down Arrow - Scrolls the Command Prompt window downwards.
Manage text with keyboard shortcuts for Command Prompt
Sometimes, it's useful to know how you can manage text. By that, we mean things like quickly finding bits of text, autocomplete your commands, or deleting entire parts of text:
Ctrl + F - Opens the Find dialog, which you can use to enter and search for text in the Command Prompt window. If the text you've searched for is found, it's automatically selected.
Tab - Autocompletes folder names. You can repeatedly press to cycle through all the matching folder names from your current path.
Ctrl + End - Deletes all the text from your current cursor position and up to the end of the line.
Ctrl + Home - Deletes all the text from your current cursor position and up to the beginning of the line.
How to enable the extended keyboard shortcuts in Command Prompt
In some instances, your Windows 10 computer might be configured to not use the extended keyboard shortcuts of Command Prompt. In other words, some of the keyboard shortcuts in this guide might not work by default. That can happen if you or the person who manages your Windows 10 computer disabled them, or if you're using a very old version of Windows 10. To get all the cmd keyboard shortcuts working, here are the few settings that you should do:
Launch Command Prompt and then open its Properties window. To do that, right-click or press-and-hold on the Command Prompt's window title bar, and select Properties on the contextual menu.
In the Properties window, switch to the Options tab and make sure that the option called "Use legacy console (requires relaunch)" is disabled.
Once you've unchecked the option mentioned above, press OK and restart Command Prompt. It's mandatory for you to do that as, otherwise, the extended keyboard shortcuts can't be turned on. After you've restarted Command Prompt, head to the Options tab from the Properties window again. Then, check the "Enable Ctrl key shortcuts" and "Extended text selection keys" options.
NOTE: If you want to further enhance your productivity when working with the Command Prompt, we recommend that you also enable the following options: "Filter clipboard contents on paste" and "Enable line wrapping selection." You can find more information on what each of these options does in this guide: How to customize the Command Prompt (cmd) in Windows 10.
And… that's it - now you should be able to use all the keyboard shortcuts that we've shown you in this article. Next, if you want to keep all these Command Prompt keyboard shortcuts, use the link below to download them in PDF format.
Download: Command Prompt shortcut keys PDF
Do you know other keyboard shortcuts for Command Prompt?
If you like working with Command Prompt, it's almost sure that you also like using your keyboard more than your mouse. And that means that the more keyboard shortcuts for the Command Prompt, the better. If you know of other such key shortcuts, don't hesitate to share them with us in a comment, and we promise to update this article as soon as possible.