command >> file.txt

Category: I/O Redirection & Pipes

command >> file.txt

Redirect stdout to a file (append)

Appends a command's output to a file without erasing what's already there. >> adds to the end.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.