Lesson 7 · Reading and Writing Files · Zero to AI Hero by Meegrow Labs
You can copy a file by redirecting cat output to a new filename with cat original.txt > copy.txt, which reads every byte and writes it to the destination in one step.