
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暫停快捷鍵