Linux append console output to a logfile?

Viewed 38433

I know that I can let Linux to write the console output to a logfile by doing:

command > logfile.log

But this overwrites whatever was in the logfile before. How do I make it append the output to the logfile rather than overwriting it?

6 Answers

A single greater than character > WRITES output to a file.

A double character >> APPENDS output into an existing file

Related