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 Tutorials-29: The ‘if-then-else’ Statement

82.3K views on YouTube

In this tutorial you’ll learn to use the ‘if-then-else’ statement to make decisions for you. The script made in the previous tutorial is extended to display an error message in the event of failure of the rename command.