Lesson 6 · Reading and Writing Files · Zero to AI Hero by Meegrow Labs
You append text to an existing file without overwriting it by using >> instead of >, so echo Line two >> notes.txt adds a new line at the end.