append >>
Append command output to a file (add to end)
> appends to a file without overwriting it. Use >> in scripts that build up a report file across multiple commands.
Example
$ echo 'event 1' >> /tmp/events.txt
$ echo 'event 2' >> /tmp/events.txt
Tip: Type it yourself in the terminal below - reading is not the same as doing.