Send standard output to a file

Categories:

echo hi > file.txt

single ‘>’ replaces file

echo hi >> file.txt

double ‘>>’ appends to file