Software >> OS >> Unix >> Shell >> Examples >>  How to use while loop

eg. 1 - To list the current directory every 1 second forever # while true > do > ls -la > sleep 1 > done