问题:
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?