bash endless loop
#!/bin/bash while true do echo "Press [CTRL+C] to stop.." sleep 1 done
Here is what the above code is Doing:
1. It’s creating a while loop that will run forever.
2. It’s printing a message to the screen.
3. It’s sleeping for 1 second.
4. It’s going back to the top of the loop and repeating.