Skip to content

Instantly share code, notes, and snippets.

@karthicraghupathi
Created November 12, 2021 06:09
Show Gist options
  • Save karthicraghupathi/8f4505adfd3923a4f9dace4b50e73569 to your computer and use it in GitHub Desktop.
Save karthicraghupathi/8f4505adfd3923a4f9dace4b50e73569 to your computer and use it in GitHub Desktop.
Write Output To File While Tailing It
# use the tee command to write to a file while also viewing it
# the following will redirect both stdout and stderr to the file
command 2&>1 | tee output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment