Standard output redirection

When the notation >filename is added to the end of a command, the output of the command is written to the specified file name. The > symbol is known as the output redirection operator.

Any command that outputs its results to the screen can have its output redirected to a file.