greater-than
Redirect output. tldr-pages
On several platforms
Several platforms
Redirect stdout to a file
command >path/to/fileIdentifyAppend to a file
command >>path/to/fileIdentifyRedirect both stdout and stderr to a file
command &>path/to/fileIdentifyRedirect stderr to /dev/null to keep the terminal output clean
command 2>/dev/nullIdentifyClear the file contents or create a new empty file
>path/to/fileIdentifyRedirect stderr to stdout for piping them together
command1 2>&1 | command2IdentifyOpen a persistent file descriptor
exec 3>path/to/fileIdentifyWrite to a custom file descriptor
echo text >&3Identify