command > nul |
Supress all output |
command > file.txt |
Write standard output of command to file.txt |
command 2> file.txt |
Write standard error of command to file.txt |
command > file.txt 2>&1 |
Write both standard output and standard error of command to file.txt |
command >> file.txt |
Append standard output of command to file.txt |
command 2>> file.txt |
Append standard error of command to file.txt |
command >> file.txt 2>&1 |
Append both standard output and standard error of command to file.txt |
command < file.txt |
Command gets standard input from file.txt |
command 2>&1 |
Command standard error is redirected to standard output |
command 1>&2 |
Command standard output is redirected to standard error |