Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Shell Scripting Tutorial-41: The ‘for’ Loop

68.4K views on YouTube

In this tutorial you’ll learn to use the for loop to display names of directory files existing in your home folder, on the terminal using for loop. The for loop is an excellent construct and quite often the first choice in cases where it is not known in advance how many iterations the loop is supposed to perform.