Linux 相当于 DOS 暂停是什么? - What is the Linux equivalent to DOS pause?

问题:

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?
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章