von Visvanath Ratnaweera.
or, to avoid overwriting
command > /path/to/file 2>&1
or, to avoid overwriting
command >> /path/to/file 2>&1