Can someone please explain these commands: echo "Hello Command Line" >> hello_cli.txt

Hi folks,
I need your help! I encountered a line of code in Nr. 4 in the Try It Out! section, containing commands that hadn’t been explained in the course leading up to it. Could someone please break it down for me?



The >> shell command is used to redirect the standard output of the command on the left and append (add) it to the end of the file on the right.

If there is some existing text in the file hello_cli.txt, then >> will append/add at the end of the existing text.
Whereas > will overwrite/replace the existing text.

Awesome; thanks a bunch! :grinning: :+1: