問題:
I have a Bash shell script in which I would like to pause execution until the user presses a key.我有一個 Bash shell 腳本,我想在其中暫停執行,直到用戶按下某個鍵。 In DOS, this is easily accomplished with the "pause" command.在 DOS 中,這可以通過“暫停”命令輕鬆完成。 Is there a Linux equivalent I can use in my script?我可以在我的腳本中使用 Linux 等價物嗎?
解決方案:
參考一: https://stackoom.com/question/O8o參考二: What is the Linux equivalent to DOS pause?