SyntaxFix
Write A Post
Hire A Developer
Questions
In case somebody needs to append the output and not overriding, it is possible to use "-a" or "--append" option of "tee" command :
ls 2>&1 | tee -a /tmp/ls.txt ls 2>&1 | tee --append /tmp/ls.txt