Which command can be used to send the output of a command to both stdout and a file:

Which command can be used to send the output of a command to both stdout and a file:Category: Introduction to Linux IAuthor "LinuxQuestions"Which command can be used to send the output of a command to both stdout and a file:
Linux Questions Staff asked 1 year ago

Which command can be used to send the output of a command to both stdout and a file:

  • ls 2 | /tmp/output
  • ls | /tmp/output.txt
  • ls | tee /tmp/output.txt
  • ls | echo /tmp/output.txt

About the author