To exit the loop manually, one must click ctrl+c to kill the process or ctrl+z to stop the process. Code: #!/bin/bash while : do echo "infinite loop"; done.
確定! 回上一頁