Capture stdout and stderr to file with tee2023-09-08Command-Line ToolbeltHow to capture stdout and stderr with tee command:command 2>&1 | tee output.txt