Command Line Redirection

Hi everyone,

I am REALLY new to this, so apologies if this has been answered before and I have missed it. Working through the full-stack engineer career path and I am currently learning the Command Line. All was fine until I got to the redirection topic. Can someone explain in the MOST BASIC terms how the << < > >> symbols work?

So far, if I write $ cat blah.txt > new.txt am I right in saying that instead of displaying the contents of blah.txt to the terminal, it “displays” them in the new.txt file. I understand that this overrides any content in the new.txt file. Similarly, using >> instead would ADD the contents of blah.txt to anything in new.txt.

After that I am lost! Help!