while true i+=1 echo in bash window code example Example 1: while loop bash while true; do #code done Example 2: linux while loop while true; do #code ;done