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
Please login or Register to submit your answer