cmd暂停快捷键
When running a batch script, you may need or want to pause the output in the CMD window so that you can look things over. Is there an easy way to pause, then restart the output? Today’s SuperUser Q&A post has the answer to help with a reader’s CMD window output woes.
运行批处理脚本时,您可能需要或想要在CMD窗口中暂停输出,以便您可以查看情况。 有没有简单的方法可以暂停然后重新启动输出? 今天的SuperUser Q&A帖子提供了解决读者CMD窗口输出问题的答案。
Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.
今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。
问题 (The Question)
SuperUser reader Hashim wants to know if there is a keyboard shortcut to pause the output of a running CMD window:
超级用户阅读器Hashim想知道是否存在键盘快捷键来暂停正在运行的CMD窗口的输出:
I am in the middle of running a batch script that is taking a really long time and whose output is whizzing by at an unreadable rate. Is there a keyboard shortcut that allows you to pause the CMD console where it currently is so that you can read the output, then restart it again from the same place?
我正在运行一个批处理脚本,该批处理脚本花费的时间非常长,并且其输出以难以理解的速度波动。 是否有键盘快捷键可让您暂停CMD控制台当前所在的位置,以便您可以读取输出,然后从同一位置重新启动它?
Is there a keyboard shortcut to pause the output of a running CMD window?
是否有键盘快捷键来暂停正在运行的CMD窗口的输出?
答案 (The Answer)
SuperUser contributor Marc.2377 has the answer for us:
超级用户贡献者Marc.2377为我们提供了答案:
Does your keyboard have the Pause/Break key? It would serve well for pausing the output. Here is an image for reference:
键盘上有暂停/中断键吗? 这对于暂停输出很有用。 这是供参考的图像:
If you do not have that key, using the keyboard combination Control + NumLock should work just the same (according to Wikipedia).
如果您没有该键,则使用组合键Control + NumLock应该可以完全相同(根据Wikipedia )。
To resume execution/output, just press Enter or the Space Bar.
要恢复执行/输出,只需按Enter或空格键。
Image Source: Wikipedia
图片来源: Wikipedia
Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.
有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程。
Image Credit: Hashim (SuperUser)
图片来源: Hashim(SuperUser)
翻译自: https://www.howtogeek.com/281943/is-there-a-keyboard-shortcut-to-pause-the-output-of-a-running-cmd-window/
cmd暂停快捷键