bash endless loop 1

bash endless loop

while true
	echo "Press [CTRL+C] to stop.."
	sleep 1

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.

Similar Posts