Lesson 5 · Reading and Writing Files · Zero to AI Hero by Meegrow Labs
You redirect the output of a command into a file using the greater-than symbol >, for example echo Hello > greeting.txt creates a file containing that text.