Pipe output of terminal to file

command |& tee -a output.txt

- Both the standard output and standard error streams will be copied to the file while still being visible in the terminal. If the file already exists, the new data will get appended to the end of the file.

  • linux/pipe-output.txt
  • Last modified: 2019/04/18 22:11
  • by